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.001682/0.001682, allocations: 101.8 kB / 16.27 MB, free: 5.93 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.001224/0.001224, allocations: 190.2 kB / 17.2 MB, free: 5.574 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.748/1.748, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.242/0.242, allocations: 43.52 MB / 313.9 MB, free: 0.5312 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.002431/0.002432, allocations: 69.72 kB / 382.8 MB, free: 56.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1244, allocations: 57.8 MB / 440.6 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.00371/0.1282, allocations: 2.401 MB / 443 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001511/0.1297, allocations: 0.9756 MB / 444 MB, free: 3.391 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001849/0.1299, allocations: 15.94 kB / 444 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003461/0.1303, allocations: 119.2 kB / 444.1 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002056/0.1305, allocations: 95.33 kB / 444.2 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005758/0.1311, allocations: 283.5 kB / 444.5 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000512/0.1316, allocations: 0.7211 MB / 445.2 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002131/0.1319, allocations: 72.97 kB / 445.3 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003111/0.1322, allocations: 303 kB / 445.6 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003029/0.1325, allocations: 326.8 kB / 445.9 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.085e-05/0.1326, allocations: 60 kB / 446 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.721e-05/0.1327, allocations: 64 kB / 446 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001722/0.1329, allocations: 191.5 kB / 446.2 MB, free: 1.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.133, allocations: 242.7 kB / 446.5 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004719/0.1335, allocations: 0.5451 MB / 447 MB, free: 384 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.1335, allocations: 3.938 kB / 447 MB, free: 380 kB / 318.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.1336, allocations: 0 / 447 MB, free: 380 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.1336, allocations: 3.938 kB / 447 MB, free: 376 kB / 318.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.002425/0.136, allocations: 0.9276 MB / 447.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.845e-05/0.1361, allocations: 19.89 kB / 448 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001368/0.1362, allocations: 90.7 kB / 448 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.1364, allocations: 64.28 kB / 448.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006115/0.137, allocations: 371.2 kB / 448.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004374/0.1375, allocations: 259.7 kB / 448.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.843e-05/0.1376, allocations: 40.38 kB / 448.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002075/0.1397, allocations: 0.8124 MB / 449.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.1397, allocations: 4 kB / 449.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.911e-05/0.1398, allocations: 16 kB / 449.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.1398, allocations: 8 kB / 449.6 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003757/0.1435, allocations: 1.204 MB / 450.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002968/0.1465, allocations: 2.05 MB / 452.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003119/0.1497, allocations: 0.818 MB / 453.7 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001583/0.1513, allocations: 497.3 kB / 454.2 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.033e-05/0.1514, allocations: 5.062 kB / 454.2 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.069e-05/0.1514, allocations: 54.44 kB / 454.2 MB, free: 8.867 MB / 334.1 MB Notification: Performance of pre-optimization done (n=64): time 3.717e-06/0.1514, allocations: 3.938 kB / 454.2 MB, free: 8.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.09268/0.2441, allocations: 15.74 MB / 470 MB, free: 8.945 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.883e-05/0.2442, allocations: 94.17 kB / 470.1 MB, free: 8.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005929/0.2448, allocations: 393.4 kB / 470.4 MB, free: 8.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002464/0.2451, allocations: 41.7 kB / 470.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002037/0.2453, allocations: 229.1 kB / 470.7 MB, free: 8.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000543/0.2459, allocations: 394.1 kB / 471.1 MB, free: 7.777 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007063/0.2466, allocations: 198.8 kB / 471.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00022/0.2468, allocations: 374.8 kB / 471.6 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0039/0.2507, allocations: 1.342 MB / 473 MB, free: 5.859 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004118/0.2549, allocations: 1.49 MB / 474.5 MB, free: 4.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0072/0.2621, allocations: 2.445 MB / 476.9 MB, free: 1.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.067e-05/0.2622, allocations: 0 / 476.9 MB, free: 1.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008195/0.2704, allocations: 2.834 MB / 479.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.2704, allocations: 4 kB / 479.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.2704, allocations: 4 kB / 479.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.271e-05/0.2705, allocations: 8 kB / 479.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002808/0.2733, allocations: 411.6 kB / 480.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-05/0.2734, allocations: 11.94 kB / 480.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0021/0.2755, allocations: 219.7 kB / 480.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001712/0.2757, allocations: 43.92 kB / 480.4 MB, free: 14.3 MB / 366.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.0005075/0.2762, allocations: 241.7 kB / 480.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000253/0.2764, allocations: 67.23 kB / 480.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002653/0.2767, allocations: 112.7 kB / 480.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.2767, allocations: 12 kB / 480.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/0.2767, allocations: 3.938 kB / 480.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.2768, allocations: 3.984 kB / 480.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01177/0.2885, allocations: 5.235 MB / 486.1 MB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.374e-05/0.2886, allocations: 20 kB / 486.1 MB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001547/0.2902, allocations: 359.4 kB / 486.5 MB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-05/0.2902, allocations: 28 kB / 486.5 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/0.2903, allocations: 48 kB / 486.6 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-05/0.2904, allocations: 43.86 kB / 486.6 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-05/0.2904, allocations: 27.88 kB / 486.6 MB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007328/0.2977, allocations: 3.09 MB / 489.7 MB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004941/0.2983, allocations: 240.3 kB / 490 MB, free: 4.129 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001875/0.2985, allocations: 51.98 kB / 490 MB, free: 4.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001426/0.2999, allocations: 187.8 kB / 490.2 MB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004651/0.3004, allocations: 227.2 kB / 490.4 MB, free: 3.672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/0.3005, allocations: 56 kB / 490.5 MB, free: 3.617 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003318/0.3009, allocations: 263.1 kB / 490.7 MB, free: 3.355 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3009, allocations: 0 / 490.7 MB, free: 3.355 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001082/0.302, allocations: 232 kB / 490.9 MB, free: 3.129 MB / 366.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.008046/0.31, allocations: 3.686 MB / 494.6 MB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006843/0.3169, allocations: 2.402 MB / 497 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.469e-05/0.317, allocations: 4 kB / 497 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003731/0.3207, allocations: 1.063 MB / 498.1 MB, free: 11.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001651/0.3224, allocations: 165.7 kB / 498.3 MB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02978/0.3522, allocations: 12.46 MB / 0.4987 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007248/0.353, allocations: 0.9283 MB / 0.4997 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001449/0.3545, allocations: 202.3 kB / 0.4998 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007945/0.3553, allocations: 219.4 kB / 0.5001 GB, free: 12.96 MB / 398.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3553, allocations: 0 / 0.5001 GB, free: 12.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0542/0.4095, allocations: 21.64 MB / 0.5212 GB, free: 7.297 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.732/9.141, allocations: 11.94 kB / 0.5212 GB, free: 7.285 MB / 414.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches