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.001356/0.001356, allocations: 110.4 kB / 17.78 MB, free: 5.312 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.001316/0.001316, allocations: 187.1 kB / 18.71 MB, free: 4.387 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.437/1.437, allocations: 222.9 MB / 242.4 MB, free: 15.18 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.2206/0.2206, allocations: 44.18 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 63.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4077/0.409, allocations: 60.82 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003181/0.4122, allocations: 2.415 MB / 0.5212 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001501/0.4137, allocations: 0.932 MB / 0.5222 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/0.4139, allocations: 9.219 kB / 0.5222 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003769/0.4143, allocations: 123.4 kB / 0.5223 GB, free: 1.152 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002366/0.4146, allocations: 97.22 kB / 0.5224 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007178/0.4153, allocations: 287.7 kB / 0.5227 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008283/0.4161, allocations: 0.7247 MB / 0.5234 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001755/0.4163, allocations: 72.41 kB / 0.5234 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003739/0.4167, allocations: 301.6 kB / 0.5237 GB, free: 484 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004473/0.4171, allocations: 330.3 kB / 0.524 GB, free: 340 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001076/0.4173, allocations: 59.62 kB / 0.5241 GB, free: 340 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001019/0.4174, allocations: 60.91 kB / 0.5241 GB, free: 340 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002084/0.4176, allocations: 190.8 kB / 0.5243 GB, free: 240 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001972/0.4178, allocations: 236.4 kB / 0.5246 GB, free: 80 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006375/0.4184, allocations: 0.5694 MB / 0.5251 GB, free: 15.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.4184, allocations: 4 kB / 0.5251 GB, free: 15.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4185, allocations: 1.375 kB / 0.5251 GB, free: 15.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.826e-06/0.4185, allocations: 0 / 0.5251 GB, free: 15.74 MB / 398.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.00241/0.4209, allocations: 0.9314 MB / 0.526 GB, free: 15.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.4209, allocations: 8.938 kB / 0.526 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.4211, allocations: 69.5 kB / 0.5261 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005801/0.4217, allocations: 379.4 kB / 0.5265 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004362/0.4221, allocations: 266 kB / 0.5267 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.4223, allocations: 40 kB / 0.5268 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002096/0.4244, allocations: 0.812 MB / 0.5275 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.4244, allocations: 5.281 kB / 0.5275 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.81e-05/0.4245, allocations: 17.5 kB / 0.5276 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.4245, allocations: 9.625 kB / 0.5276 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003707/0.4282, allocations: 1.206 MB / 0.5288 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00335/0.4316, allocations: 2.023 MB / 0.5307 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003133/0.4347, allocations: 0.8258 MB / 0.5315 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001514/0.4363, allocations: 494.3 kB / 0.532 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.623e-05/0.4363, allocations: 10.05 kB / 0.532 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.4364, allocations: 42.59 kB / 0.5321 GB, free: 10.87 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.484e-06/0.4364, allocations: 11.88 kB / 0.5321 GB, free: 10.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.08875/0.5251, allocations: 15.76 MB / 0.5475 GB, free: 14.33 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.078e-05/0.5253, allocations: 90.23 kB / 0.5475 GB, free: 14.22 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004899/0.5258, allocations: 389.4 kB / 0.5479 GB, free: 13.83 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001522/0.5259, allocations: 45.7 kB / 0.548 GB, free: 13.78 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.5261, allocations: 228.9 kB / 0.5482 GB, free: 13.55 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003912/0.5265, allocations: 394.2 kB / 0.5486 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005586/0.5271, allocations: 202.8 kB / 0.5488 GB, free: 12.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.5272, allocations: 374.8 kB / 0.5491 GB, free: 12.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003686/0.5309, allocations: 1.345 MB / 0.5504 GB, free: 11.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003849/0.5348, allocations: 1.49 MB / 0.5519 GB, free: 9.699 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006965/0.5418, allocations: 2.445 MB / 0.5543 GB, free: 7.207 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.5418, allocations: 4 kB / 0.5543 GB, free: 7.203 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007826/0.5496, allocations: 2.83 MB / 0.557 GB, free: 4.367 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.141e-05/0.5497, allocations: 8 kB / 0.557 GB, free: 4.359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.5497, allocations: 4 kB / 0.557 GB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.58e-05/0.5497, allocations: 8 kB / 0.5571 GB, free: 4.348 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002729/0.5525, allocations: 411.6 kB / 0.5574 GB, free: 3.945 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.334e-05/0.5525, allocations: 15.92 kB / 0.5575 GB, free: 3.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001975/0.5545, allocations: 215.7 kB / 0.5577 GB, free: 3.719 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/0.5546, allocations: 39.98 kB / 0.5577 GB, free: 3.68 MB / 414.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.0005138/0.5552, allocations: 226.1 kB / 0.5579 GB, free: 3.449 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002347/0.5554, allocations: 71.17 kB / 0.558 GB, free: 3.379 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002557/0.5557, allocations: 112.7 kB / 0.5581 GB, free: 3.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.5557, allocations: 12 kB / 0.5581 GB, free: 3.258 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.544e-05/0.5557, allocations: 3.938 kB / 0.5581 GB, free: 3.254 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.5557, allocations: 3.984 kB / 0.5581 GB, free: 3.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0117/0.5674, allocations: 5.235 MB / 0.5632 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-05/0.5675, allocations: 20 kB / 0.5632 GB, free: 13.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001489/0.569, allocations: 360 kB / 0.5636 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.471e-05/0.569, allocations: 28 kB / 0.5636 GB, free: 13.28 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.48e-05/0.5691, allocations: 44 kB / 0.5637 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.533e-05/0.5691, allocations: 43.8 kB / 0.5637 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.039e-05/0.5692, allocations: 31.88 kB / 0.5637 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007183/0.5764, allocations: 3.083 MB / 0.5667 GB, free: 9.773 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005201/0.5769, allocations: 240.3 kB / 0.567 GB, free: 9.52 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.5771, allocations: 51.98 kB / 0.567 GB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/0.5784, allocations: 187.8 kB / 0.5672 GB, free: 9.285 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004962/0.5789, allocations: 223.2 kB / 0.5674 GB, free: 9.066 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.793e-05/0.579, allocations: 60 kB / 0.5675 GB, free: 9.008 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003531/0.5794, allocations: 263.2 kB / 0.5677 GB, free: 8.75 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5794, allocations: 0 / 0.5677 GB, free: 8.75 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00115/0.5805, allocations: 235.9 kB / 0.5679 GB, free: 8.52 MB / 430.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.0002378/0.5808, allocations: 173.2 kB / 0.5681 GB, free: 8.344 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006416/0.5872, allocations: 2.391 MB / 0.5704 GB, free: 5.953 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.44e-05/0.5872, allocations: 4 kB / 0.5704 GB, free: 5.949 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003434/0.5907, allocations: 1.067 MB / 0.5715 GB, free: 4.887 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/0.5919, allocations: 146 kB / 0.5716 GB, free: 4.746 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003822/0.5958, allocations: 1.946 MB / 0.5735 GB, free: 2.488 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005943/0.5964, allocations: 0.9204 MB / 0.5744 GB, free: 1.543 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001008/0.5974, allocations: 214 kB / 0.5746 GB, free: 1.332 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005624/0.598, allocations: 63.44 kB / 0.5747 GB, free: 1.27 MB / 430.1 MB Notification: Performance of SimCode: time 9.01e-07/0.598, allocations: 0 / 0.5747 GB, free: 1.27 MB / 430.1 MB Notification: Performance of Templates: time 0.02841/0.6264, allocations: 17.41 MB / 0.5917 GB, free: 15.88 MB / 462.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