Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001379/0.001379, allocations: 179.2 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.729/1.729, allocations: 205.4 MB / 222.5 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001009/0.001009, allocations: 92.44 kB / 270.9 MB, free: 8.344 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3078/0.3078, allocations: 43.57 MB / 362.7 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003778/0.0003778, allocations: 8 kB / 431.4 MB, free: 5.934 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1025, allocations: 58.85 MB / 490.2 MB, free: 11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002304/0.1048, allocations: 1.986 MB / 492.2 MB, free: 8.996 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001321/0.1062, allocations: 0.9563 MB / 493.2 MB, free: 8.031 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.1063, allocations: 7.938 kB / 493.2 MB, free: 8.023 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003235/0.1066, allocations: 91.45 kB / 493.3 MB, free: 7.934 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001708/0.1068, allocations: 75.58 kB / 493.3 MB, free: 7.859 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004802/0.1073, allocations: 227.7 kB / 493.6 MB, free: 7.637 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005402/0.1078, allocations: 0.6236 MB / 494.2 MB, free: 7.012 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.108, allocations: 65.22 kB / 494.2 MB, free: 6.945 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002609/0.1083, allocations: 255.1 kB / 494.5 MB, free: 6.695 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000305/0.1086, allocations: 298.9 kB / 494.8 MB, free: 6.402 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.148e-05/0.1087, allocations: 32 kB / 494.8 MB, free: 6.371 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.395e-05/0.1088, allocations: 32 kB / 494.9 MB, free: 6.34 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001382/0.1089, allocations: 147.5 kB / 495 MB, free: 6.195 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 8.247e-05/0.109, allocations: 93.45 kB / 495.1 MB, free: 6.098 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003127/0.1093, allocations: 387.3 kB / 495.5 MB, free: 5.719 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1093, allocations: 0 / 495.5 MB, free: 5.719 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1093, allocations: 0 / 495.5 MB, free: 5.719 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1093, allocations: 0 / 495.5 MB, free: 5.719 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.002117/0.1115, allocations: 0.9352 MB / 496.4 MB, free: 4.734 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.1115, allocations: 16.02 kB / 496.4 MB, free: 4.719 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.1116, allocations: 63.44 kB / 496.5 MB, free: 4.656 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000453/0.1121, allocations: 366.1 kB / 496.8 MB, free: 4.258 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003403/0.1124, allocations: 271.1 kB / 497.1 MB, free: 3.957 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.68e-05/0.1125, allocations: 47.94 kB / 497.1 MB, free: 3.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002039/0.1146, allocations: 0.8633 MB / 498 MB, free: 3.004 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.1146, allocations: 7.953 kB / 498 MB, free: 2.996 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.725e-05/0.1147, allocations: 16 kB / 498 MB, free: 2.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.1147, allocations: 8 kB / 498 MB, free: 2.973 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003507/0.1182, allocations: 1.321 MB / 499.4 MB, free: 1.652 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1654/0.2836, allocations: 2.068 MB / 0.4897 GB, free: 42.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002998/0.2867, allocations: 0.8946 MB / 0.4906 GB, free: 42.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001522/0.2882, allocations: 0.5481 MB / 0.4911 GB, free: 42.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.827e-05/0.2883, allocations: 9.812 kB / 0.4911 GB, free: 42.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.2883, allocations: 42 kB / 0.4911 GB, free: 42.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=64): time 2.725e-06/0.2883, allocations: 1.094 kB / 0.4911 GB, free: 42.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=120): time 0.08628/0.3746, allocations: 18.23 MB / 0.5089 GB, free: 39.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.3747, allocations: 90.86 kB / 0.509 GB, free: 39.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003418/0.375, allocations: 386.1 kB / 0.5094 GB, free: 39.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001343/0.3752, allocations: 52.42 kB / 0.5094 GB, free: 39.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.698e-05/0.3753, allocations: 215.2 kB / 0.5097 GB, free: 39.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002607/0.3755, allocations: 407.7 kB / 0.51 GB, free: 38.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.3757, allocations: 22.06 kB / 0.5101 GB, free: 38.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.397e-05/0.3758, allocations: 375.2 kB / 0.5104 GB, free: 38.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003319/0.3791, allocations: 1.45 MB / 0.5118 GB, free: 38.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0034/0.3825, allocations: 1.607 MB / 0.5134 GB, free: 37.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003101/0.3856, allocations: 1.306 MB / 0.5147 GB, free: 36.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.3856, allocations: 0 / 0.5147 GB, free: 36.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007122/0.3927, allocations: 3.048 MB / 0.5177 GB, free: 35.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.3928, allocations: 6.062 kB / 0.5177 GB, free: 35.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.3928, allocations: 3.781 kB / 0.5177 GB, free: 35.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/0.3928, allocations: 13.09 kB / 0.5177 GB, free: 35.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002669/0.3955, allocations: 467.5 kB / 0.5181 GB, free: 35.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.502e-05/0.3955, allocations: 12.08 kB / 0.5181 GB, free: 35.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001981/0.3975, allocations: 280 kB / 0.5184 GB, free: 35.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001305/0.3977, allocations: 42.56 kB / 0.5184 GB, free: 35.76 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004132/0.3981, allocations: 237.9 kB / 0.5187 GB, free: 35.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001912/0.3983, allocations: 63.72 kB / 0.5187 GB, free: 35.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001835/0.3985, allocations: 113.4 kB / 0.5188 GB, free: 35.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-06/0.3985, allocations: 13.12 kB / 0.5189 GB, free: 35.44 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.549e-05/0.3985, allocations: 0 / 0.5189 GB, free: 35.44 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.3985, allocations: 3.234 kB / 0.5189 GB, free: 35.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01103/0.4096, allocations: 5.548 MB / 0.5243 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.458e-05/0.4096, allocations: 21.41 kB / 0.5243 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001567/0.4112, allocations: 415.2 kB / 0.5247 GB, free: 32.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-05/0.4112, allocations: 34.03 kB / 0.5247 GB, free: 32.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.02e-05/0.4113, allocations: 47.52 kB / 0.5248 GB, free: 32.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.423e-05/0.4114, allocations: 42.58 kB / 0.5248 GB, free: 32.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.985e-05/0.4114, allocations: 32.38 kB / 0.5248 GB, free: 32.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007248/0.4186, allocations: 3.409 MB / 0.5282 GB, free: 31.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004055/0.4191, allocations: 240.5 kB / 0.5284 GB, free: 30.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/0.4192, allocations: 52.06 kB / 0.5284 GB, free: 30.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001341/0.4206, allocations: 251.9 kB / 0.5287 GB, free: 30.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004102/0.421, allocations: 233.3 kB / 0.5289 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.614e-05/0.4211, allocations: 59.25 kB / 0.529 GB, free: 30.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002661/0.4213, allocations: 264.5 kB / 0.5292 GB, free: 30.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4213, allocations: 0.9688 kB / 0.5292 GB, free: 30.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000929/0.4223, allocations: 229.5 kB / 0.5294 GB, free: 30.58 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001979/0.4225, allocations: 170.1 kB / 0.5296 GB, free: 30.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006284/0.4288, allocations: 2.562 MB / 0.5321 GB, free: 29.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/0.4288, allocations: 3.781 kB / 0.5321 GB, free: 29.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003289/0.4321, allocations: 1.177 MB / 0.5333 GB, free: 29.22 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00121/0.4333, allocations: 160.7 kB / 0.5334 GB, free: 29.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003323/0.4367, allocations: 2.196 MB / 0.5356 GB, free: 27.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.437, allocations: 0.9214 MB / 0.5365 GB, free: 26.63 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006598/0.4377, allocations: 80.06 kB / 0.5365 GB, free: 26.62 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4377, allocations: 0 / 0.5365 GB, free: 26.62 MB / 378.7 MB Notification: Performance of Templates: time 0.01497/0.4527, allocations: 14.19 MB / 0.5504 GB, free: 12.77 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches