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: translateModel(ModelicaTest.Blocks.KinematicPTP,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y|integrator1.y|integrator2.y|integrator3.y",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001158, allocations: 105.7 kB / 17.32 MB, free: 5.984 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.001181/0.001181, allocations: 193.3 kB / 18.25 MB, free: 5.07 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.329/1.329, allocations: 222.9 MB / 241.9 MB, free: 15.37 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.1924/0.1924, allocations: 44.18 MB / 336.2 MB, free: 2.91 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 57.88 kB / 407.9 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.116, allocations: 60.83 MB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003962/0.1201, allocations: 2.445 MB / 471.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.1216, allocations: 0.9359 MB / 472.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001489/0.1217, allocations: 7.938 kB / 472.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003607/0.1221, allocations: 99.5 kB / 472.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002147/0.1224, allocations: 83.52 kB / 472.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005794/0.1229, allocations: 255.7 kB / 472.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000676/0.1236, allocations: 0.7251 MB / 473.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001533/0.1238, allocations: 69.05 kB / 473.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002998/0.1241, allocations: 299 kB / 473.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003639/0.1245, allocations: 342.7 kB / 473.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.001e-05/0.1246, allocations: 64 kB / 474 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.214e-05/0.1247, allocations: 60 kB / 474.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001884/0.1249, allocations: 195.5 kB / 474.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002132/0.1251, allocations: 250.7 kB / 474.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000487/0.1256, allocations: 0.5454 MB / 475 MB, free: 8.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1256, allocations: 0 / 475 MB, free: 8.352 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1256, allocations: 0 / 475 MB, free: 8.352 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.1256, allocations: 0 / 475 MB, free: 8.352 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.002189/0.1278, allocations: 0.9392 MB / 476 MB, free: 7.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.1278, allocations: 12.03 kB / 476 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.128, allocations: 68.27 kB / 476.1 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004656/0.1284, allocations: 371.2 kB / 476.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003202/0.1288, allocations: 263.6 kB / 476.7 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.957e-05/0.1289, allocations: 40.38 kB / 476.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001906/0.1308, allocations: 0.8126 MB / 477.5 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.1308, allocations: 11.89 kB / 477.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.907e-05/0.1309, allocations: 16 kB / 477.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.1309, allocations: 8 kB / 477.6 MB, free: 5.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003357/0.1343, allocations: 1.208 MB / 478.8 MB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003027/0.1373, allocations: 2.042 MB / 480.8 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00292/0.1403, allocations: 0.8212 MB / 481.6 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001461/0.1417, allocations: 0.4895 MB / 482.1 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.13e-05/0.1418, allocations: 13.06 kB / 482.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.958e-05/0.1419, allocations: 42.5 kB / 482.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 5.771e-06/0.1419, allocations: 7.922 kB / 482.2 MB, free: 0.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=120): time 0.0884/0.2303, allocations: 15.74 MB / 497.9 MB, free: 1.004 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.2304, allocations: 90.23 kB / 498 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005666/0.231, allocations: 401.4 kB / 498.4 MB, free: 0.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002022/0.2312, allocations: 45.7 kB / 498.4 MB, free: 460 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.2314, allocations: 213 kB / 498.7 MB, free: 240 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004873/0.2319, allocations: 406.3 kB / 499.1 MB, free: 15.83 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006441/0.2326, allocations: 198.8 kB / 499.2 MB, free: 15.63 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.2327, allocations: 374.8 kB / 499.6 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003578/0.2363, allocations: 1.341 MB / 0.4892 GB, free: 13.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003594/0.2399, allocations: 1.49 MB / 0.4907 GB, free: 12.38 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006431/0.2464, allocations: 2.445 MB / 0.4931 GB, free: 9.891 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.2464, allocations: 0 / 0.4931 GB, free: 9.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007449/0.2539, allocations: 2.83 MB / 0.4958 GB, free: 7.051 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.342e-05/0.2539, allocations: 8 kB / 0.4958 GB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.2539, allocations: 4 kB / 0.4958 GB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.518e-05/0.254, allocations: 8 kB / 0.4958 GB, free: 7.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002841/0.2568, allocations: 411.6 kB / 0.4962 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.537e-05/0.2569, allocations: 11.94 kB / 0.4962 GB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002094/0.259, allocations: 219.7 kB / 0.4965 GB, free: 6.402 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001809/0.2592, allocations: 40 kB / 0.4965 GB, free: 6.363 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.0005063/0.2597, allocations: 233.4 kB / 0.4967 GB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002496/0.2599, allocations: 67.25 kB / 0.4968 GB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002617/0.2602, allocations: 108.7 kB / 0.4969 GB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.2602, allocations: 12 kB / 0.4969 GB, free: 5.938 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-05/0.2602, allocations: 11.92 kB / 0.4969 GB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.2603, allocations: 3.984 kB / 0.4969 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01158/0.2718, allocations: 5.23 MB / 0.502 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.476e-05/0.272, allocations: 24.03 kB / 0.502 GB, free: 336 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1776/0.4495, allocations: 353.4 kB / 0.5024 GB, free: 50.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.183e-05/0.4496, allocations: 28.22 kB / 0.5024 GB, free: 50.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002548/0.4499, allocations: 46.72 kB / 0.5024 GB, free: 50.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.906e-05/0.45, allocations: 40.08 kB / 0.5025 GB, free: 50.53 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.153e-05/0.45, allocations: 33.62 kB / 0.5025 GB, free: 50.53 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00705/0.4571, allocations: 3.09 MB / 0.5055 GB, free: 49.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003624/0.4574, allocations: 241 kB / 0.5058 GB, free: 49.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/0.4576, allocations: 54.98 kB / 0.5058 GB, free: 49.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001331/0.4589, allocations: 187.8 kB / 0.506 GB, free: 49.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000441/0.4594, allocations: 222.6 kB / 0.5062 GB, free: 49.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.746e-05/0.4595, allocations: 57.17 kB / 0.5063 GB, free: 49.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002867/0.4598, allocations: 262.9 kB / 0.5065 GB, free: 49.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4598, allocations: 1.094 kB / 0.5065 GB, free: 49.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009841/0.4608, allocations: 230.3 kB / 0.5067 GB, free: 49.31 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.000206/0.461, allocations: 171.8 kB / 0.5069 GB, free: 49.19 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00651/0.4675, allocations: 2.402 MB / 0.5092 GB, free: 48.35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.86e-05/0.4676, allocations: 3.25 kB / 0.5092 GB, free: 48.35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003196/0.4708, allocations: 1.065 MB / 0.5103 GB, free: 48.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.4721, allocations: 156.3 kB / 0.5104 GB, free: 47.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003793/0.4759, allocations: 2.205 MB / 0.5126 GB, free: 46.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000624/0.4765, allocations: 0.9234 MB / 0.5135 GB, free: 45.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001321/0.4778, allocations: 195.1 kB / 0.5137 GB, free: 45.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006359/0.4785, allocations: 70.97 kB / 0.5137 GB, free: 45.45 MB / 382.1 MB Notification: Performance of SimCode: time 1.452e-06/0.4785, allocations: 3.938 kB / 0.5137 GB, free: 45.45 MB / 382.1 MB Notification: Performance of Templates: time 0.0228/0.5013, allocations: 16.02 MB / 0.5294 GB, free: 36.23 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches