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: translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP") translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001922/0.001922, allocations: 102.8 kB / 16.27 MB, free: 5.969 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.002607/0.002607, allocations: 190 kB / 17.19 MB, free: 5.602 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.664/1.664, 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.2319/0.2319, allocations: 43.52 MB / 313.9 MB, free: 0.5391 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.001423/0.001423, allocations: 74.45 kB / 382.7 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1125, allocations: 57.79 MB / 440.5 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.00329/0.1158, allocations: 2.393 MB / 442.9 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.1173, allocations: 0.9873 MB / 443.9 MB, free: 3.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002438/0.1175, allocations: 7.938 kB / 443.9 MB, free: 3.512 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003402/0.1179, allocations: 127.2 kB / 444 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000278/0.1182, allocations: 91.33 kB / 444.1 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007019/0.1189, allocations: 283.5 kB / 444.4 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006178/0.1195, allocations: 0.7211 MB / 445.1 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.1197, allocations: 73.27 kB / 445.2 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003872/0.1201, allocations: 306.9 kB / 445.5 MB, free: 1.918 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003805/0.1205, allocations: 326.8 kB / 445.8 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001301/0.1206, allocations: 60 kB / 445.9 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.1207, allocations: 60 kB / 445.9 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.1209, allocations: 195.5 kB / 446.1 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001888/0.1211, allocations: 242.7 kB / 446.3 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004286/0.1215, allocations: 0.549 MB / 446.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.1215, allocations: 0 / 446.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1215, allocations: 0 / 446.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.576e-05/0.1216, allocations: 0 / 446.9 MB, free: 0.5 MB / 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.002191/0.1238, allocations: 0.9314 MB / 447.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.1238, allocations: 19.89 kB / 447.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/0.124, allocations: 60.38 kB / 447.9 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005243/0.1245, allocations: 375.1 kB / 448.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003749/0.1249, allocations: 263.7 kB / 448.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.855e-05/0.125, allocations: 40.38 kB / 448.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002061/0.1271, allocations: 0.8087 MB / 449.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.1271, allocations: 4 kB / 449.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.855e-05/0.1272, allocations: 16 kB / 449.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.1272, allocations: 8 kB / 449.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003655/0.1308, allocations: 1.208 MB / 450.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003289/0.1341, allocations: 2.043 MB / 452.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003289/0.1375, allocations: 0.8258 MB / 453.5 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001629/0.1391, allocations: 489.3 kB / 454 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-05/0.1392, allocations: 13.05 kB / 454 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.513e-05/0.1393, allocations: 54.38 kB / 454 MB, free: 9.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=64): time 3.066e-06/0.1393, allocations: 0 / 454 MB, free: 9.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.09238/0.2317, allocations: 15.74 MB / 469.8 MB, free: 9.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.064e-05/0.2318, allocations: 94.17 kB / 469.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005636/0.2324, allocations: 389.5 kB / 470.2 MB, free: 8.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002385/0.2327, allocations: 45.7 kB / 470.3 MB, free: 8.629 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001786/0.2328, allocations: 221 kB / 470.5 MB, free: 8.406 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004361/0.2333, allocations: 402.2 kB / 470.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006164/0.2339, allocations: 198.8 kB / 471.1 MB, free: 7.809 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.2341, allocations: 374.8 kB / 471.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003805/0.2379, allocations: 1.342 MB / 472.8 MB, free: 6.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003926/0.2418, allocations: 1.49 MB / 474.3 MB, free: 4.555 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007061/0.2489, allocations: 2.457 MB / 476.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/0.249, allocations: 0 / 476.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008452/0.2574, allocations: 2.826 MB / 479.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.505e-05/0.2575, allocations: 8 kB / 479.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.75e-05/0.2575, allocations: 11.92 kB / 479.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.812e-05/0.2576, allocations: 8 kB / 479.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002825/0.2604, allocations: 411.6 kB / 480 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.888e-05/0.2605, allocations: 11.94 kB / 480 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002074/0.2625, allocations: 215.7 kB / 480.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001665/0.2627, allocations: 39.98 kB / 480.3 MB, free: 14.53 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.0004979/0.2632, allocations: 237.7 kB / 480.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000256/0.2635, allocations: 71.25 kB / 480.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002705/0.2638, allocations: 108.7 kB / 480.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.2638, allocations: 12 kB / 480.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/0.2638, allocations: 7.938 kB / 480.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.2638, allocations: 7.969 kB / 480.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01281/0.2767, allocations: 5.234 MB / 485.9 MB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.816e-05/0.2768, allocations: 20 kB / 485.9 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001596/0.2784, allocations: 352.3 kB / 486.3 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.521e-05/0.2784, allocations: 28 kB / 486.3 MB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001179/0.2785, allocations: 48 kB / 486.4 MB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.957e-05/0.2786, allocations: 39.84 kB / 486.4 MB, free: 8.027 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.319e-05/0.2786, allocations: 35.88 kB / 486.4 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007877/0.2865, allocations: 3.09 MB / 489.5 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006325/0.2872, allocations: 236.3 kB / 489.8 MB, free: 4.355 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/0.2874, allocations: 51.98 kB / 489.8 MB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001564/0.289, allocations: 187.8 kB / 490 MB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005508/0.2896, allocations: 223.2 kB / 490.2 MB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001438/0.2897, allocations: 67.94 kB / 490.3 MB, free: 3.836 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004608/0.2902, allocations: 263.1 kB / 490.5 MB, free: 3.574 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2902, allocations: 0 / 490.5 MB, free: 3.574 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001347/0.2916, allocations: 232 kB / 490.8 MB, free: 3.348 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.0003372/0.2919, allocations: 162.8 kB / 490.9 MB, free: 3.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006886/0.2988, allocations: 2.41 MB / 493.3 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.502e-05/0.2989, allocations: 4 kB / 493.3 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00357/0.3025, allocations: 1.063 MB / 494.4 MB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001786/0.3043, allocations: 157.2 kB / 494.5 MB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004083/0.3084, allocations: 1.954 MB / 496.5 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005726/0.309, allocations: 0.9283 MB / 497.4 MB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00124/0.3102, allocations: 194.2 kB / 497.6 MB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005674/0.3108, allocations: 75.42 kB / 497.7 MB, free: 12.07 MB / 382.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3108, allocations: 0 / 497.7 MB, free: 12.07 MB / 382.1 MB Notification: Performance of Templates: time 0.02813/0.339, allocations: 16.66 MB / 0.5023 GB, free: 11.41 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches