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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001127/0.001126, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 222.9 MB / 241.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 105.5 kB / 291.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3761/0.3761, allocations: 44.13 MB / 386.1 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000973/0.000973, allocations: 51.92 kB / 457.7 MB, free: 2.285 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3373, allocations: 60.8 MB / 0.5064 GB, free: 38.34 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003445/0.3408, allocations: 2.443 MB / 0.5088 GB, free: 36.61 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.3423, allocations: 0.9328 MB / 0.5097 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.3425, allocations: 6.562 kB / 0.5097 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003622/0.3429, allocations: 107.2 kB / 0.5098 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000198/0.3431, allocations: 81.28 kB / 0.5099 GB, free: 35.86 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005835/0.3437, allocations: 248.1 kB / 0.5101 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005293/0.3442, allocations: 0.6832 MB / 0.5108 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.3444, allocations: 67.09 kB / 0.5108 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002649/0.3447, allocations: 278.3 kB / 0.5111 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000312/0.345, allocations: 322.7 kB / 0.5114 GB, free: 35.19 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.3451, allocations: 32.06 kB / 0.5114 GB, free: 35.19 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.386e-05/0.3452, allocations: 34.88 kB / 0.5115 GB, free: 35.19 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.3454, allocations: 160 kB / 0.5116 GB, free: 35.12 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001895/0.3456, allocations: 230.5 kB / 0.5118 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004305/0.346, allocations: 0.5175 MB / 0.5124 GB, free: 34.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.346, allocations: 0 / 0.5124 GB, free: 34.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.346, allocations: 3.938 kB / 0.5124 GB, free: 34.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.346, allocations: 0 / 0.5124 GB, free: 34.77 MB / 378.7 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.002059/0.3481, allocations: 0.9241 MB / 0.5133 GB, free: 34.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.3482, allocations: 15.38 kB / 0.5133 GB, free: 34.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001252/0.3483, allocations: 68.06 kB / 0.5133 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004619/0.3488, allocations: 376.6 kB / 0.5137 GB, free: 33.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003041/0.3491, allocations: 258.7 kB / 0.5139 GB, free: 33.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.892e-05/0.3492, allocations: 41.66 kB / 0.514 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001887/0.3511, allocations: 0.8118 MB / 0.5148 GB, free: 33.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.3511, allocations: 0 / 0.5148 GB, free: 33.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.71e-05/0.3512, allocations: 17.09 kB / 0.5148 GB, free: 33.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.3512, allocations: 9.844 kB / 0.5148 GB, free: 33.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003557/0.3547, allocations: 1.205 MB / 0.516 GB, free: 33.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002532/0.3573, allocations: 2.045 MB / 0.518 GB, free: 31.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002814/0.3601, allocations: 0.8296 MB / 0.5188 GB, free: 31.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001387/0.3615, allocations: 492.9 kB / 0.5193 GB, free: 31.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.649e-05/0.3616, allocations: 18.17 kB / 0.5193 GB, free: 31.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.3617, allocations: 41.38 kB / 0.5193 GB, free: 31.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=64): time 2.565e-06/0.3617, allocations: 4 kB / 0.5193 GB, free: 31.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=120): time 0.08262/0.4443, allocations: 15.75 MB / 0.5347 GB, free: 27.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.4444, allocations: 93.73 kB / 0.5348 GB, free: 27.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005442/0.4449, allocations: 388.7 kB / 0.5352 GB, free: 26.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001655/0.4451, allocations: 46.55 kB / 0.5352 GB, free: 26.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.4453, allocations: 217.8 kB / 0.5354 GB, free: 26.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003389/0.4456, allocations: 403.8 kB / 0.5358 GB, free: 26.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006296/0.4462, allocations: 199.4 kB / 0.536 GB, free: 26.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.4464, allocations: 370.1 kB / 0.5363 GB, free: 25.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003933/0.4503, allocations: 1.343 MB / 0.5376 GB, free: 25.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003967/0.4543, allocations: 1.492 MB / 0.5391 GB, free: 24.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00701/0.4613, allocations: 2.459 MB / 0.5415 GB, free: 23.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.4614, allocations: 1.094 kB / 0.5415 GB, free: 23.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007816/0.4692, allocations: 2.831 MB / 0.5443 GB, free: 22.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.51e-05/0.4693, allocations: 6.781 kB / 0.5443 GB, free: 22.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.965e-05/0.4693, allocations: 3.344 kB / 0.5443 GB, free: 22.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.508e-05/0.4693, allocations: 8.312 kB / 0.5443 GB, free: 22.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002865/0.4722, allocations: 405.6 kB / 0.5447 GB, free: 22.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.663e-05/0.4723, allocations: 12.44 kB / 0.5447 GB, free: 22.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00205/0.4743, allocations: 225.8 kB / 0.5449 GB, free: 21.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001718/0.4745, allocations: 43.7 kB / 0.5449 GB, free: 21.94 MB / 378.7 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.0004864/0.475, allocations: 226.4 kB / 0.5452 GB, free: 21.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002987/0.4753, allocations: 61.59 kB / 0.5452 GB, free: 21.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002926/0.4756, allocations: 115.3 kB / 0.5453 GB, free: 21.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2e-05/0.4756, allocations: 12.34 kB / 0.5453 GB, free: 21.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.031e-05/0.4757, allocations: 3.938 kB / 0.5453 GB, free: 21.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.4757, allocations: 9.438 kB / 0.5454 GB, free: 21.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01202/0.4877, allocations: 5.231 MB / 0.5505 GB, free: 18.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-05/0.4878, allocations: 23.28 kB / 0.5505 GB, free: 18.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00139/0.4892, allocations: 352.2 kB / 0.5508 GB, free: 17.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.949e-05/0.4892, allocations: 28 kB / 0.5508 GB, free: 17.69 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.398e-05/0.4893, allocations: 47.98 kB / 0.5509 GB, free: 17.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.225e-05/0.4893, allocations: 39.86 kB / 0.5509 GB, free: 17.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.396e-05/0.4894, allocations: 35.88 kB / 0.551 GB, free: 17.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01384/0.5032, allocations: 5.629 MB / 0.5565 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006428/0.5039, allocations: 240.3 kB / 0.5567 GB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000156/0.5041, allocations: 51.98 kB / 0.5567 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002058/0.5062, allocations: 187.8 kB / 0.5569 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000575/0.5068, allocations: 219.2 kB / 0.5571 GB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001282/0.5069, allocations: 56 kB / 0.5572 GB, free: 10.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000381/0.5073, allocations: 267.1 kB / 0.5574 GB, free: 10.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5073, allocations: 3.938 kB / 0.5574 GB, free: 10.49 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001961/0.5093, allocations: 248 kB / 0.5577 GB, free: 10.25 MB / 378.7 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.0002672/0.5096, allocations: 177.3 kB / 0.5578 GB, free: 10.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009106/0.5187, allocations: 2.34 MB / 0.5601 GB, free: 7.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-05/0.5187, allocations: 8.062 kB / 0.5601 GB, free: 7.723 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006225/0.525, allocations: 1.065 MB / 0.5612 GB, free: 6.664 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002396/0.5274, allocations: 150.1 kB / 0.5613 GB, free: 6.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006607/0.534, allocations: 2.777 MB / 0.564 GB, free: 3.414 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005536/0.5346, allocations: 0.9558 MB / 0.565 GB, free: 2.434 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002585/0.5372, allocations: 198.1 kB / 0.5652 GB, free: 2.238 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009546/0.5382, allocations: 75.42 kB / 0.5652 GB, free: 2.164 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5382, allocations: 0 / 0.5652 GB, free: 2.164 MB / 378.7 MB Notification: Performance of Templates: time 0.04543/0.5837, allocations: 16.09 MB / 0.5809 GB, free: 2.094 MB / 394.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches