Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP",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.0009805/0.0009807, allocations: 96.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 183.4 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2273/0.2273, allocations: 44.23 MB / 337.1 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003472/0.0003473, allocations: 8 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.1539, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002762/0.1567, allocations: 1.967 MB / 473.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001873/0.1586, allocations: 0.9013 MB / 474.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003394/0.159, allocations: 15.81 kB / 474.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003736/0.1594, allocations: 79.59 kB / 474.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003864/0.1598, allocations: 87.7 kB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006963/0.1605, allocations: 211.7 kB / 474.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005544/0.1611, allocations: 435.2 kB / 475.2 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.1613, allocations: 65.22 kB / 475.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002838/0.1616, allocations: 259.1 kB / 475.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003733/0.1619, allocations: 294.9 kB / 475.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.419e-05/0.162, allocations: 31.94 kB / 475.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.178e-05/0.1621, allocations: 32 kB / 475.9 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001617/0.1623, allocations: 151.5 kB / 476 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.312e-05/0.1624, allocations: 97.45 kB / 476.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003294/0.1627, allocations: 379.3 kB / 476.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1627, allocations: 0 / 476.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1627, allocations: 4 kB / 476.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.1627, allocations: 0 / 476.5 MB, free: 8.637 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002134/0.1649, allocations: 0.9315 MB / 477.4 MB, free: 7.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.18e-05/0.165, allocations: 8.031 kB / 477.4 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001193/0.1651, allocations: 94.41 kB / 477.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.1652, allocations: 63.34 kB / 477.6 MB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005342/0.1657, allocations: 362.1 kB / 477.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004054/0.1662, allocations: 279.1 kB / 478.2 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.8e-05/0.1663, allocations: 39.91 kB / 478.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0021/0.1684, allocations: 0.8594 MB / 479.1 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.1684, allocations: 3.938 kB / 479.1 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.612e-05/0.1685, allocations: 16 kB / 479.1 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.1685, allocations: 16 kB / 479.2 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003602/0.1721, allocations: 1.321 MB / 480.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002901/0.175, allocations: 2.081 MB / 482.6 MB, free: 2.316 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003026/0.1781, allocations: 0.8954 MB / 483.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.853e-05/0.1782, allocations: 8 kB / 483.5 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.1782, allocations: 46.56 kB / 483.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 2.955e-06/0.1782, allocations: 0 / 483.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.08976/0.268, allocations: 18.22 MB / 0.49 GB, free: 14.94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.423e-05/0.2681, allocations: 98.16 kB / 0.4901 GB, free: 14.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000541/0.2687, allocations: 389.4 kB / 0.4904 GB, free: 14.44 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002219/0.2689, allocations: 45.7 kB / 0.4905 GB, free: 14.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001949/0.2691, allocations: 221.1 kB / 0.4907 GB, free: 14.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000493/0.2696, allocations: 398.1 kB / 0.4911 GB, free: 13.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001792/0.2698, allocations: 24 kB / 0.4911 GB, free: 13.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.27, allocations: 370.8 kB / 0.4914 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003875/0.2739, allocations: 1.451 MB / 0.4929 GB, free: 11.92 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004038/0.2779, allocations: 1.599 MB / 0.4944 GB, free: 10.28 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00366/0.2816, allocations: 1.308 MB / 0.4957 GB, free: 8.973 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.2816, allocations: 0 / 0.4957 GB, free: 8.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008196/0.2898, allocations: 3.053 MB / 0.4987 GB, free: 5.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.2899, allocations: 11.95 kB / 0.4987 GB, free: 5.898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.2899, allocations: 4.25 kB / 0.4987 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.653e-05/0.2899, allocations: 12 kB / 0.4987 GB, free: 5.883 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002758/0.2927, allocations: 463.3 kB / 0.4991 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.64e-05/0.2928, allocations: 11.98 kB / 0.4992 GB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00215/0.2949, allocations: 279.7 kB / 0.4994 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001763/0.2951, allocations: 43.98 kB / 0.4995 GB, free: 5.102 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 10 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.noWphase,integrator3.local_reset,integrator2.local_reset,integrator1.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 (148): * Single equations (assignments): 148 * 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.0006299/0.2957, allocations: 231.6 kB / 0.4997 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002512/0.296, allocations: 71.16 kB / 0.4998 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002391/0.2962, allocations: 112.7 kB / 0.4999 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.2963, allocations: 12 kB / 0.4999 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.39e-05/0.2963, allocations: 0 / 0.4999 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.2963, allocations: 11.91 kB / 0.4999 GB, free: 4.664 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2712/0.5675, allocations: 5.546 MB / 0.5053 GB, free: 49.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.415e-05/0.5676, allocations: 21.67 kB / 0.5053 GB, free: 49.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001678/0.5693, allocations: 410.3 kB / 0.5057 GB, free: 49.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.21e-05/0.5693, allocations: 31.56 kB / 0.5057 GB, free: 49.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.995e-05/0.5694, allocations: 43.91 kB / 0.5058 GB, free: 49.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-05/0.5695, allocations: 40.17 kB / 0.5058 GB, free: 49.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-05/0.5695, allocations: 38.16 kB / 0.5059 GB, free: 49.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00874/0.5782, allocations: 4.502 MB / 0.5103 GB, free: 46.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004951/0.5788, allocations: 239.5 kB / 0.5105 GB, free: 46.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.5789, allocations: 48.69 kB / 0.5105 GB, free: 46.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001446/0.5804, allocations: 257.1 kB / 0.5108 GB, free: 46.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004896/0.5809, allocations: 226.4 kB / 0.511 GB, free: 46.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.769e-05/0.581, allocations: 57.31 kB / 0.511 GB, free: 46.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003334/0.5813, allocations: 261.4 kB / 0.5113 GB, free: 46.56 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5813, allocations: 0 / 0.5113 GB, free: 46.56 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001122/0.5825, allocations: 235.6 kB / 0.5115 GB, free: 46.56 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 94 * Number of states: 4 (integrator2.y,integrator3.y,integrator.y,integrator1.y) * Number of discrete variables: 6 (kinematicPTP2b.moving[1],kinematicPTP1b.moving[1],kinematicPTP2b.noWphase,kinematicPTP2a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1a.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 120 * 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.0105/0.593, allocations: 11.48 MB / 0.5227 GB, free: 36.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007127/0.6001, allocations: 2.563 MB / 0.5252 GB, free: 35.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.771e-05/0.6002, allocations: 2.969 kB / 0.5252 GB, free: 35.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003668/0.6039, allocations: 1.174 MB / 0.5264 GB, free: 35.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.6049, allocations: 128.5 kB / 0.5265 GB, free: 35.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01743/0.6224, allocations: 10.12 MB / 0.5364 GB, free: 28.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005402/0.623, allocations: 0.9402 MB / 0.5373 GB, free: 27.74 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001208/0.6242, allocations: 197.5 kB / 0.5375 GB, free: 27.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005979/0.6248, allocations: 211.4 kB / 0.5377 GB, free: 27.34 MB / 382.1 MB Notification: Performance of SimCode: time 1.623e-06/0.6248, allocations: 4.938 kB / 0.5377 GB, free: 27.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03054/0.6553, allocations: 19.75 MB / 0.557 GB, free: 7.762 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001295/0.6555, allocations: 173.4 kB / 0.5572 GB, free: 7.516 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.313/2.968, allocations: 7.875 kB / 0.5572 GB, free: 7.508 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat does not exist to compare? outputFormat=mat