Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.KinematicPTP,fileNamePrefix="ModelicaTest_3_2_3_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.001011/0.001011, allocations: 87.84 kB / 16.01 MB, free: 92 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.001901/0.001901, allocations: 182.7 kB / 16.92 MB, free: 6.676 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.513/1.513, allocations: 205.4 MB / 223.1 MB, free: 5.773 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.3607/0.3607, allocations: 43.58 MB / 315 MB, free: 8.691 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.0005752/0.0005754, allocations: 16 kB / 384.7 MB, free: 7.566 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1422, allocations: 58.87 MB / 443.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003264/0.1455, allocations: 2.083 MB / 445.6 MB, free: 10.49 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002236/0.1477, allocations: 0.9601 MB / 446.6 MB, free: 9.523 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003424/0.1481, allocations: 11.94 kB / 446.6 MB, free: 9.512 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004636/0.1486, allocations: 103.4 kB / 446.7 MB, free: 9.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004044/0.149, allocations: 75.58 kB / 446.8 MB, free: 9.336 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008255/0.1499, allocations: 259.6 kB / 447 MB, free: 9.082 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000855/0.1507, allocations: 0.6821 MB / 447.7 MB, free: 8.398 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002205/0.151, allocations: 81.23 kB / 447.8 MB, free: 8.316 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005093/0.1515, allocations: 266.9 kB / 448 MB, free: 8.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000574/0.1521, allocations: 314.8 kB / 448.3 MB, free: 7.746 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001759/0.1523, allocations: 28 kB / 448.4 MB, free: 7.719 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001214/0.1524, allocations: 32 kB / 448.4 MB, free: 7.688 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002124/0.1526, allocations: 159.5 kB / 448.6 MB, free: 7.531 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002845/0.1529, allocations: 252.4 kB / 448.8 MB, free: 7.277 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005514/0.1535, allocations: 0.4982 MB / 449.3 MB, free: 6.777 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1535, allocations: 0 / 449.3 MB, free: 6.777 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1535, allocations: 0 / 449.3 MB, free: 6.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.998e-05/0.1535, allocations: 0 / 449.3 MB, free: 6.777 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002722/0.1562, allocations: 0.9277 MB / 450.2 MB, free: 5.801 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.352e-05/0.1563, allocations: 8.031 kB / 450.2 MB, free: 5.793 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002428/0.1566, allocations: 90.7 kB / 450.3 MB, free: 5.695 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001723/0.1568, allocations: 64.38 kB / 450.4 MB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006186/0.1574, allocations: 371.1 kB / 450.8 MB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004557/0.1578, allocations: 279.7 kB / 451 MB, free: 4.922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.158, allocations: 44.28 kB / 451.1 MB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002352/0.1603, allocations: 0.8749 MB / 451.9 MB, free: 3.961 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.137e-05/0.1604, allocations: 3.938 kB / 452 MB, free: 3.957 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.553e-05/0.1604, allocations: 16 kB / 452 MB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.489e-05/0.1605, allocations: 15.94 kB / 452 MB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003841/0.1643, allocations: 1.321 MB / 453.3 MB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003177/0.1675, allocations: 2.07 MB / 455.4 MB, free: 460 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2117/0.3792, allocations: 0.8877 MB / 456.3 MB, free: 46.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001667/0.3809, allocations: 0.5581 MB / 456.8 MB, free: 46.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.519e-05/0.381, allocations: 5.906 kB / 456.8 MB, free: 46.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.3811, allocations: 45.58 kB / 456.9 MB, free: 46.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=64): time 3.326e-06/0.3811, allocations: 0 / 456.9 MB, free: 46.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.09008/0.4711, allocations: 18.24 MB / 475.1 MB, free: 44.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.16e-05/0.4713, allocations: 90.98 kB / 475.2 MB, free: 44.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005569/0.4719, allocations: 395 kB / 475.6 MB, free: 44.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001841/0.4721, allocations: 42.8 kB / 475.6 MB, free: 44.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.4722, allocations: 216.1 kB / 475.8 MB, free: 44.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003571/0.4725, allocations: 409.8 kB / 476.2 MB, free: 43.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000213/0.4728, allocations: 94.5 kB / 476.3 MB, free: 43.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.4729, allocations: 378.3 kB / 476.7 MB, free: 43.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004038/0.4769, allocations: 1.454 MB / 478.2 MB, free: 43.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004537/0.4815, allocations: 1.612 MB / 479.8 MB, free: 42.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007785/0.4893, allocations: 2.664 MB / 482.4 MB, free: 41.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.244e-05/0.4893, allocations: 1.281 kB / 482.4 MB, free: 41.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00948/0.4988, allocations: 3.064 MB / 485.5 MB, free: 40.22 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.942e-05/0.4989, allocations: 11.16 kB / 485.5 MB, free: 40.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/0.499, allocations: 3.438 kB / 485.5 MB, free: 40.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.217e-05/0.499, allocations: 8.531 kB / 485.5 MB, free: 40.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003022/0.502, allocations: 472.4 kB / 486 MB, free: 40.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.606e-05/0.5021, allocations: 8.906 kB / 486 MB, free: 40.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002221/0.5043, allocations: 281.4 kB / 486.3 MB, free: 40.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001445/0.5045, allocations: 44 kB / 486.3 MB, free: 40.14 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.noWphase,kinematicPTP2b.moving[1],kinematicPTP1a.noWphase,kinematicPTP1b.noWphase,kinematicPTP1b.moving[1],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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004869/0.505, allocations: 226.5 kB / 486.5 MB, free: 39.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002112/0.5052, allocations: 64.56 kB / 486.6 MB, free: 39.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002662/0.5054, allocations: 109.2 kB / 486.7 MB, free: 39.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.526e-05/0.5055, allocations: 12.47 kB / 486.7 MB, free: 39.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.112e-05/0.5055, allocations: 1.031 kB / 486.7 MB, free: 39.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.5055, allocations: 14.31 kB / 486.7 MB, free: 39.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01242/0.5179, allocations: 5.55 MB / 492.3 MB, free: 37.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-05/0.518, allocations: 25.41 kB / 492.3 MB, free: 37.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001761/0.5198, allocations: 408.6 kB / 492.7 MB, free: 37.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-05/0.5198, allocations: 27.88 kB / 492.7 MB, free: 37.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/0.52, allocations: 47.73 kB / 492.8 MB, free: 37.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.613e-05/0.52, allocations: 43.84 kB / 492.8 MB, free: 37.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.298e-05/0.5201, allocations: 33.86 kB / 492.8 MB, free: 37.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008295/0.5284, allocations: 3.425 MB / 496.3 MB, free: 35.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005243/0.5289, allocations: 240.4 kB / 496.5 MB, free: 35.26 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.5291, allocations: 53.02 kB / 496.6 MB, free: 35.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/0.5305, allocations: 256.9 kB / 496.8 MB, free: 35.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004365/0.5309, allocations: 214 kB / 497 MB, free: 35.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.884e-05/0.5311, allocations: 57.84 kB / 497.1 MB, free: 35.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003189/0.5314, allocations: 263.7 kB / 497.3 MB, free: 34.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5314, allocations: 0 / 497.3 MB, free: 34.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001182/0.5326, allocations: 233.9 kB / 497.6 MB, free: 34.95 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007922/0.5405, allocations: 4.023 MB / 0.4898 GB, free: 32.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006442/0.547, allocations: 2.569 MB / 0.4923 GB, free: 30.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-05/0.5471, allocations: 4 kB / 0.4923 GB, free: 30.51 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003435/0.5505, allocations: 1.184 MB / 0.4935 GB, free: 29.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002081/0.5526, allocations: 155.9 kB / 0.4936 GB, free: 29.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02483/0.5774, allocations: 13.28 MB / 0.5066 GB, free: 15.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.5779, allocations: 0.932 MB / 0.5075 GB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001268/0.5791, allocations: 194.2 kB / 0.5077 GB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006541/0.5798, allocations: 219.4 kB / 0.5079 GB, free: 13.82 MB / 382.1 MB Notification: Performance of SimCode: time 1.473e-06/0.5798, allocations: 2.625 kB / 0.5079 GB, free: 13.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03583/0.6156, allocations: 19.89 MB / 0.5273 GB, free: 10 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002403/0.6159, allocations: 184.4 kB / 0.5275 GB, free: 9.746 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.347/2.963, allocations: 0 / 0.5275 GB, free: 9.746 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_KinematicPTP.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches