Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialState,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Continuous_InitialState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialState,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Continuous_InitialState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 97.45 kB / 15.69 MB, free: 484 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 176.3 kB / 16.56 MB, free: 6.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.396/1.396, allocations: 205.4 MB / 222.7 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3753/0.3753, allocations: 43.54 MB / 314.5 MB, free: 8.754 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006253/0.0006255, allocations: 16 kB / 384 MB, free: 7.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1257, allocations: 58.85 MB / 442.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialState): time 0.003425/0.1291, allocations: 2.857 MB / 445.7 MB, free: 10.1 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002705/0.1319, allocations: 1.494 MB / 447.2 MB, free: 8.598 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002917/0.1322, allocations: 19.88 kB / 447.2 MB, free: 8.578 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004553/0.1326, allocations: 95.31 kB / 447.3 MB, free: 8.484 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004044/0.1331, allocations: 187.4 kB / 447.5 MB, free: 8.301 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009582/0.134, allocations: 423.1 kB / 447.9 MB, free: 7.887 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000743/0.1348, allocations: 0.5812 MB / 448.5 MB, free: 7.305 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003354/0.1351, allocations: 177.2 kB / 448.7 MB, free: 7.121 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003919/0.1355, allocations: 314.7 kB / 449 MB, free: 6.812 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004029/0.1359, allocations: 318.4 kB / 449.3 MB, free: 6.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.955e-05/0.136, allocations: 20 kB / 449.3 MB, free: 6.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.432e-05/0.1361, allocations: 20 kB / 449.3 MB, free: 6.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00019/0.1363, allocations: 151.4 kB / 449.5 MB, free: 6.312 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.1364, allocations: 133.3 kB / 449.6 MB, free: 6.176 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005086/0.1369, allocations: 0.5378 MB / 450.1 MB, free: 5.637 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.1369, allocations: 0 / 450.1 MB, free: 5.637 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1369, allocations: 0 / 450.1 MB, free: 5.637 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.016e-06/0.137, allocations: 4 kB / 450.1 MB, free: 5.633 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002229/0.1392, allocations: 1.063 MB / 451.2 MB, free: 4.516 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/0.1393, allocations: 8.031 kB / 451.2 MB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001064/0.1394, allocations: 86.52 kB / 451.3 MB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.1395, allocations: 90.92 kB / 451.4 MB, free: 4.324 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009054/0.1404, allocations: 0.5265 MB / 451.9 MB, free: 3.754 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.473e-05/0.1405, allocations: 40.94 kB / 451.9 MB, free: 3.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.1406, allocations: 67.92 kB / 452 MB, free: 3.648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.1417, allocations: 0.6174 MB / 452.6 MB, free: 2.977 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/0.1417, allocations: 7.891 kB / 452.6 MB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.54e-05/0.1418, allocations: 20 kB / 452.6 MB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.1418, allocations: 19.89 kB / 452.7 MB, free: 2.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001078/0.1429, allocations: 0.49 MB / 453.2 MB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.241/0.3839, allocations: 2.685 MB / 455.8 MB, free: 45.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/0.3851, allocations: 0.5846 MB / 456.4 MB, free: 45.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.046e-05/0.3852, allocations: 5.219 kB / 456.4 MB, free: 45.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.3852, allocations: 42.38 kB / 456.5 MB, free: 45.64 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 3.637e-06/0.3852, allocations: 0 / 456.5 MB, free: 45.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.002428/0.3877, allocations: 1.206 MB / 457.7 MB, free: 45.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.063e-05/0.3877, allocations: 138.5 kB / 457.8 MB, free: 45.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007395/0.3885, allocations: 0.6506 MB / 458.5 MB, free: 45.11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.277e-05/0.3885, allocations: 37.45 kB / 458.5 MB, free: 45.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002278/0.3888, allocations: 363.2 kB / 458.9 MB, free: 44.95 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.3889, allocations: 172.9 kB / 459 MB, free: 44.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.896e-05/0.3889, allocations: 12.81 kB / 459 MB, free: 44.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.62e-05/0.389, allocations: 330.7 kB / 459.4 MB, free: 44.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005839/0.3896, allocations: 288.3 kB / 459.6 MB, free: 44.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006353/0.3902, allocations: 443.5 kB / 460.1 MB, free: 44.36 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006464/0.3909, allocations: 331.7 kB / 460.4 MB, free: 44.35 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3909, allocations: 0 / 460.4 MB, free: 44.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001467/0.3924, allocations: 0.833 MB / 461.2 MB, free: 44.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003556/0.3927, allocations: 1.746 MB / 463 MB, free: 42.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.3928, allocations: 12.92 kB / 463 MB, free: 42.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.3928, allocations: 8.75 kB / 463 MB, free: 42.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006114/0.3934, allocations: 153.9 kB / 463.2 MB, free: 42.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.3934, allocations: 10.41 kB / 463.2 MB, free: 42.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000474/0.3939, allocations: 90.47 kB / 463.2 MB, free: 42.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.517e-05/0.394, allocations: 27 kB / 463.3 MB, free: 42.42 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.136e-06/0.394, allocations: 2.906 kB / 463.3 MB, free: 42.42 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001266/0.3953, allocations: 0.7237 MB / 464 MB, free: 42.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.3953, allocations: 3.594 kB / 464 MB, free: 42.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.464e-06/0.3953, allocations: 9.094 kB / 464 MB, free: 42.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005563/0.3958, allocations: 154.9 kB / 464.2 MB, free: 42.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.3959, allocations: 11.53 kB / 464.2 MB, free: 42.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004559/0.3963, allocations: 89.69 kB / 464.3 MB, free: 42.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.553e-05/0.3964, allocations: 23.84 kB / 464.3 MB, free: 42.32 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002734/0.3967, allocations: 290.8 kB / 464.6 MB, free: 42.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.3968, allocations: 75.31 kB / 464.6 MB, free: 42.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001583/0.3969, allocations: 91.17 kB / 464.7 MB, free: 42.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.397, allocations: 5.562 kB / 464.7 MB, free: 42.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.397, allocations: 4 kB / 464.7 MB, free: 42.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.397, allocations: 0 / 464.7 MB, free: 42.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001341/0.3983, allocations: 0.8689 MB / 465.6 MB, free: 41.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3983, allocations: 2.625 kB / 465.6 MB, free: 41.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006048/0.399, allocations: 118.7 kB / 465.7 MB, free: 41.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.399, allocations: 3.031 kB / 465.7 MB, free: 41.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.412e-05/0.399, allocations: 15.7 kB / 465.7 MB, free: 41.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.399, allocations: 2.812 kB / 465.8 MB, free: 41.74 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.399, allocations: 0 / 465.8 MB, free: 41.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001858/0.4009, allocations: 1.236 MB / 467 MB, free: 41.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002239/0.4011, allocations: 195.1 kB / 467.2 MB, free: 41.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.73e-05/0.4012, allocations: 14.84 kB / 467.2 MB, free: 41.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005012/0.4017, allocations: 70.12 kB / 467.3 MB, free: 41.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.4019, allocations: 35.11 kB / 467.3 MB, free: 41.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.199e-05/0.4019, allocations: 15.23 kB / 467.3 MB, free: 41.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006243/0.4025, allocations: 452.8 kB / 467.8 MB, free: 41.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4025, allocations: 0 / 467.8 MB, free: 41.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007657/0.4033, allocations: 194.4 kB / 467.9 MB, free: 41.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002074/0.4054, allocations: 1.922 MB / 469.9 MB, free: 40.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002025/0.4074, allocations: 1.016 MB / 470.9 MB, free: 39.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.4075, allocations: 0 / 470.9 MB, free: 39.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005475/0.408, allocations: 303.5 kB / 471.2 MB, free: 39.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008571/0.4089, allocations: 172 kB / 471.3 MB, free: 39.74 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00748/0.4164, allocations: 7.716 MB / 479.1 MB, free: 34.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.4168, allocations: 0.9652 MB / 480 MB, free: 33.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004801/0.4173, allocations: 151.7 kB / 480.2 MB, free: 33.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003397/0.4176, allocations: 256.2 kB / 480.4 MB, free: 33.56 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4176, allocations: 0 / 480.4 MB, free: 33.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04736/0.465, allocations: 13.4 MB / 493.8 MB, free: 32.59 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.4653, allocations: 185.9 kB / 494 MB, free: 32.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.115/2.58, allocations: 1.344 kB / 494 MB, free: 32.34 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Continuous_InitialState_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Continuous_InitialState.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState_res.mat does not exist to compare? outputFormat=mat