Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009473/0.0009475, allocations: 174.3 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 225.7 MB / 243.9 MB, free: 8.469 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007697/0.0007697, allocations: 92.92 kB / 295 MB, free: 9.496 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3692/0.3692, allocations: 44.33 MB / 390.5 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003578/0.000358, allocations: 8 kB / 463.1 MB, free: 472 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3598, allocations: 61.9 MB / 0.5127 GB, free: 37.76 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002074/0.362, allocations: 1.997 MB / 0.5147 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.3632, allocations: 0.9033 MB / 0.5156 GB, free: 35.66 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.3633, allocations: 10.69 kB / 0.5156 GB, free: 35.66 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000323/0.3637, allocations: 97.55 kB / 0.5157 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002337/0.3639, allocations: 87.19 kB / 0.5158 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005473/0.3645, allocations: 254.6 kB / 0.516 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005561/0.365, allocations: 0.6817 MB / 0.5167 GB, free: 35.16 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.3652, allocations: 62.53 kB / 0.5167 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002458/0.3654, allocations: 268.5 kB / 0.517 GB, free: 35.04 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003459/0.3658, allocations: 313.4 kB / 0.5173 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.944e-05/0.3659, allocations: 30.16 kB / 0.5173 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.778e-05/0.366, allocations: 30.59 kB / 0.5173 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001842/0.3661, allocations: 152.1 kB / 0.5175 GB, free: 34.85 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002064/0.3664, allocations: 250.1 kB / 0.5177 GB, free: 34.68 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004271/0.3668, allocations: 0.499 MB / 0.5182 GB, free: 34.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3668, allocations: 0 / 0.5182 GB, free: 34.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.532e-06/0.3668, allocations: 3.938 kB / 0.5182 GB, free: 34.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.3668, allocations: 0 / 0.5182 GB, free: 34.52 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.002065/0.3689, allocations: 0.927 MB / 0.5191 GB, free: 33.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.369, allocations: 11.28 kB / 0.5191 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.3691, allocations: 66.62 kB / 0.5192 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004491/0.3695, allocations: 364.3 kB / 0.5195 GB, free: 33.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003066/0.3699, allocations: 276.2 kB / 0.5198 GB, free: 33.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.393e-05/0.37, allocations: 45.44 kB / 0.5198 GB, free: 33.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00177/0.3717, allocations: 0.8739 MB / 0.5207 GB, free: 33.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.3718, allocations: 0 / 0.5207 GB, free: 33.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.362e-05/0.3719, allocations: 16.56 kB / 0.5207 GB, free: 33.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.3719, allocations: 9.969 kB / 0.5207 GB, free: 33.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00301/0.3749, allocations: 1.326 MB / 0.522 GB, free: 32.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002423/0.3773, allocations: 2.07 MB / 0.524 GB, free: 31.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002609/0.38, allocations: 0.8979 MB / 0.5249 GB, free: 31.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00126/0.3812, allocations: 0.5452 MB / 0.5254 GB, free: 30.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.695e-05/0.3813, allocations: 6.906 kB / 0.5255 GB, free: 30.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.3813, allocations: 41.31 kB / 0.5255 GB, free: 30.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=64): time 2.304e-06/0.3813, allocations: 0 / 0.5255 GB, free: 30.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=120): time 0.08051/0.4619, allocations: 18.24 MB / 0.5433 GB, free: 26.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.462, allocations: 90.39 kB / 0.5434 GB, free: 26.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005793/0.4626, allocations: 397 kB / 0.5438 GB, free: 26.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002282/0.4628, allocations: 46.42 kB / 0.5438 GB, free: 26.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.4629, allocations: 218.5 kB / 0.544 GB, free: 26.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003466/0.4633, allocations: 399.5 kB / 0.5444 GB, free: 25.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/0.4634, allocations: 24.84 kB / 0.5444 GB, free: 25.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.4636, allocations: 372.9 kB / 0.5448 GB, free: 25.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003627/0.4672, allocations: 1.45 MB / 0.5462 GB, free: 24.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003777/0.471, allocations: 1.607 MB / 0.5478 GB, free: 24.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006317/0.4773, allocations: 2.662 MB / 0.5504 GB, free: 22.65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.4774, allocations: 0 / 0.5504 GB, free: 22.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.006844/0.4842, allocations: 3.059 MB / 0.5534 GB, free: 19.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.867e-05/0.4843, allocations: 4 kB / 0.5534 GB, free: 19.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.4843, allocations: 4 kB / 0.5534 GB, free: 19.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3e-05/0.4844, allocations: 8 kB / 0.5534 GB, free: 19.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00259/0.4869, allocations: 463.5 kB / 0.5538 GB, free: 19.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.335e-05/0.487, allocations: 15.88 kB / 0.5538 GB, free: 19.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/0.489, allocations: 279.7 kB / 0.5541 GB, free: 19.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001605/0.4892, allocations: 39.98 kB / 0.5541 GB, free: 19 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.moving[1],kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.noWphase,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.0004587/0.4897, allocations: 237 kB / 0.5544 GB, free: 18.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001991/0.4899, allocations: 67.16 kB / 0.5544 GB, free: 18.69 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001816/0.4901, allocations: 104.7 kB / 0.5545 GB, free: 18.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.4901, allocations: 15.98 kB / 0.5545 GB, free: 18.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-05/0.4901, allocations: 3.938 kB / 0.5545 GB, free: 18.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.948e-06/0.4901, allocations: 7.984 kB / 0.5545 GB, free: 18.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009942/0.5001, allocations: 5.54 MB / 0.56 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-05/0.5001, allocations: 24 kB / 0.56 GB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001338/0.5015, allocations: 412.1 kB / 0.5604 GB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.898e-05/0.5015, allocations: 28 kB / 0.5604 GB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.068e-05/0.5016, allocations: 52 kB / 0.5604 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.269e-05/0.5016, allocations: 43.8 kB / 0.5605 GB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.489e-05/0.5016, allocations: 31.88 kB / 0.5605 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006113/0.5078, allocations: 3.419 MB / 0.5639 GB, free: 8.379 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004834/0.5083, allocations: 244.3 kB / 0.5641 GB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.5085, allocations: 47.98 kB / 0.5641 GB, free: 8.074 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/0.5096, allocations: 247.8 kB / 0.5644 GB, free: 7.832 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003875/0.51, allocations: 223.2 kB / 0.5646 GB, free: 7.613 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.409e-05/0.5101, allocations: 56 kB / 0.5646 GB, free: 7.559 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002531/0.5103, allocations: 263.1 kB / 0.5649 GB, free: 7.301 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.41e-07/0.5104, allocations: 0 / 0.5649 GB, free: 7.301 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001015/0.5114, allocations: 235.9 kB / 0.5651 GB, free: 7.07 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.0002003/0.5116, allocations: 179.8 kB / 0.5653 GB, free: 6.883 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005361/0.517, allocations: 2.567 MB / 0.5678 GB, free: 4.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-05/0.517, allocations: 12.06 kB / 0.5678 GB, free: 4.309 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003067/0.5201, allocations: 1.172 MB / 0.569 GB, free: 3.141 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002/0.5221, allocations: 155.2 kB / 0.5691 GB, free: 2.992 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003186/0.5253, allocations: 2.218 MB / 0.5713 GB, free: 472 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000464/0.5258, allocations: 0.9168 MB / 0.5722 GB, free: 15.52 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001417/0.5272, allocations: 202.2 kB / 0.5724 GB, free: 15.32 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005838/0.5278, allocations: 67.42 kB / 0.5724 GB, free: 15.25 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5278, allocations: 0 / 0.5724 GB, free: 15.25 MB / 394.7 MB Notification: Performance of Templates: time 0.02418/0.552, allocations: 15.06 MB / 0.5871 GB, free: 200 kB / 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/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