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.001369/0.001369, allocations: 100.2 kB / 16.93 MB, free: 6.199 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.001556/0.001556, allocations: 191.6 kB / 17.86 MB, free: 5.316 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.707/1.707, allocations: 205.1 MB / 223.7 MB, free: 12.32 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.2151/0.2151, allocations: 43.52 MB / 314.6 MB, free: 0.5508 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.001525/0.001525, allocations: 70.09 kB / 383.4 MB, free: 56.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1017, allocations: 57.79 MB / 441.2 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002952/0.1047, allocations: 2.402 MB / 443.6 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001382/0.1061, allocations: 0.9795 MB / 444.6 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001492/0.1062, allocations: 7.938 kB / 444.6 MB, free: 3.531 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003267/0.1066, allocations: 127.2 kB / 444.7 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001814/0.1068, allocations: 91.33 kB / 444.8 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005147/0.1073, allocations: 283.5 kB / 445.1 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004624/0.1078, allocations: 0.725 MB / 445.8 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.1079, allocations: 73.27 kB / 445.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002271/0.1082, allocations: 295 kB / 446.1 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002772/0.1085, allocations: 334.8 kB / 446.5 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.818e-05/0.1085, allocations: 60 kB / 446.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.191e-05/0.1086, allocations: 60 kB / 446.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.1088, allocations: 195.5 kB / 446.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.1089, allocations: 242.7 kB / 447 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003392/0.1093, allocations: 0.549 MB / 447.6 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1093, allocations: 0 / 447.6 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1093, allocations: 0 / 447.6 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.1093, allocations: 3.984 kB / 447.6 MB, free: 0.5156 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.002014/0.1113, allocations: 0.9275 MB / 448.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.1113, allocations: 15.89 kB / 448.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.1115, allocations: 68.36 kB / 448.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004549/0.1119, allocations: 375.1 kB / 448.9 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003899/0.1123, allocations: 259.7 kB / 449.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.29e-05/0.1124, allocations: 40.38 kB / 449.2 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002049/0.1145, allocations: 0.8126 MB / 450.1 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.1145, allocations: 0 / 450.1 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.027e-05/0.1146, allocations: 20 kB / 450.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.1146, allocations: 8 kB / 450.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00367/0.1183, allocations: 1.204 MB / 451.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002933/0.1212, allocations: 2.039 MB / 453.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003047/0.1243, allocations: 0.8297 MB / 454.2 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001583/0.1259, allocations: 497.2 kB / 454.6 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.921e-05/0.126, allocations: 13.05 kB / 454.6 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.126, allocations: 50.44 kB / 454.7 MB, free: 9.105 MB / 334.1 MB Notification: Performance of pre-optimization done (n=64): time 2.084e-06/0.126, allocations: 4 kB / 454.7 MB, free: 9.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=120): time 0.0875/0.2135, allocations: 15.73 MB / 470.4 MB, free: 9.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.481e-05/0.2137, allocations: 94.17 kB / 470.5 MB, free: 9.086 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005727/0.2142, allocations: 393.5 kB / 470.9 MB, free: 8.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001859/0.2144, allocations: 45.7 kB / 471 MB, free: 8.645 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001639/0.2146, allocations: 217 kB / 471.2 MB, free: 8.426 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004463/0.2151, allocations: 402.2 kB / 471.6 MB, free: 8.027 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005891/0.2157, allocations: 202.8 kB / 471.8 MB, free: 7.824 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.2158, allocations: 370.8 kB / 472.1 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003827/0.2197, allocations: 1.342 MB / 473.5 MB, free: 6.109 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00382/0.2235, allocations: 1.497 MB / 475 MB, free: 4.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007006/0.2305, allocations: 2.445 MB / 477.4 MB, free: 2.078 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.2306, allocations: 0 / 477.4 MB, free: 2.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008121/0.2387, allocations: 2.83 MB / 480.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/0.2388, allocations: 8 kB / 480.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.2388, allocations: 4 kB / 480.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.79e-05/0.2388, allocations: 8 kB / 480.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002743/0.2416, allocations: 411.6 kB / 480.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.233e-05/0.2416, allocations: 11.94 kB / 480.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002068/0.2437, allocations: 219.7 kB / 480.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001604/0.2439, allocations: 39.94 kB / 480.9 MB, free: 14.55 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.0004969/0.2444, allocations: 245.7 kB / 481.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002467/0.2446, allocations: 67.25 kB / 481.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000239/0.2449, allocations: 104.7 kB / 481.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.2449, allocations: 15.98 kB / 481.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/0.2449, allocations: 7.938 kB / 481.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.2449, allocations: 3.984 kB / 481.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01185/0.2568, allocations: 5.235 MB / 486.6 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.15e-05/0.2569, allocations: 23.94 kB / 486.6 MB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001542/0.2584, allocations: 356.2 kB / 487 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.674e-05/0.2585, allocations: 28 kB / 487 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.477e-05/0.2586, allocations: 48 kB / 487 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.777e-05/0.2586, allocations: 35.86 kB / 487.1 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-05/0.2586, allocations: 35.88 kB / 487.1 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007206/0.2658, allocations: 3.09 MB / 490.2 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004269/0.2663, allocations: 240.3 kB / 490.4 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/0.2665, allocations: 51.98 kB / 490.5 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001421/0.2679, allocations: 191.7 kB / 490.7 MB, free: 4.133 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004329/0.2683, allocations: 223.2 kB / 490.9 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.2685, allocations: 60 kB / 490.9 MB, free: 3.855 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000306/0.2688, allocations: 267.1 kB / 491.2 MB, free: 3.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.2688, allocations: 0 / 491.2 MB, free: 3.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001061/0.2698, allocations: 228 kB / 491.4 MB, free: 3.367 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.0002534/0.2701, allocations: 162.8 kB / 491.6 MB, free: 3.199 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006559/0.2767, allocations: 2.414 MB / 494 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/0.2767, allocations: 4 kB / 494 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003359/0.2801, allocations: 1.063 MB / 495.1 MB, free: 15.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.2814, allocations: 160.4 kB / 495.2 MB, free: 15.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003885/0.2853, allocations: 2.002 MB / 497.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005884/0.2859, allocations: 0.9282 MB / 498.2 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006851/0.2866, allocations: 75.42 kB / 498.2 MB, free: 12.22 MB / 382.1 MB Notification: Performance of SimCode: time 4.3e-07/0.2866, allocations: 0 / 498.2 MB, free: 12.22 MB / 382.1 MB Notification: Performance of Templates: time 0.02129/0.3079, allocations: 14.2 MB / 0.5004 GB, free: 14 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/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