Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3.2.3_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_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 109.2 kB / 16.41 MB, free: 6.492 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.001426/0.001426, allocations: 189.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.496/1.496, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2155/0.2155, allocations: 43.52 MB / 314.1 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 75.89 kB / 441.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1315, allocations: 57.79 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003507/0.1351, allocations: 2.408 MB / 0.4902 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.1368, allocations: 0.9873 MB / 0.4912 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001718/0.137, allocations: 15.88 kB / 0.4912 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003942/0.1374, allocations: 119.2 kB / 0.4913 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00022/0.1376, allocations: 91.39 kB / 0.4914 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005609/0.1382, allocations: 295.5 kB / 0.4917 GB, free: 7.875 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006807/0.1389, allocations: 0.7327 MB / 0.4924 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.139, allocations: 65.06 kB / 0.4925 GB, free: 7.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00029/0.1393, allocations: 299 kB / 0.4927 GB, free: 6.777 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003839/0.1397, allocations: 338.7 kB / 0.4931 GB, free: 6.445 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.861e-05/0.1398, allocations: 67.94 kB / 0.4931 GB, free: 6.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.191e-05/0.1399, allocations: 60 kB / 0.4932 GB, free: 6.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001812/0.1401, allocations: 179.5 kB / 0.4934 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002071/0.1403, allocations: 242.7 kB / 0.4936 GB, free: 5.906 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005289/0.1408, allocations: 0.5606 MB / 0.4941 GB, free: 5.344 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.1409, allocations: 0 / 0.4941 GB, free: 5.344 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1409, allocations: 0 / 0.4941 GB, free: 5.344 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.1409, allocations: 0 / 0.4941 GB, free: 5.344 MB / 382.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.002087/0.143, allocations: 0.9315 MB / 0.4951 GB, free: 4.363 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.143, allocations: 11.89 kB / 0.4951 GB, free: 4.352 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.1431, allocations: 64.38 kB / 0.4951 GB, free: 4.289 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005637/0.1437, allocations: 391 kB / 0.4955 GB, free: 3.867 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003304/0.144, allocations: 263.7 kB / 0.4958 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.96e-05/0.1441, allocations: 44.38 kB / 0.4958 GB, free: 3.531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002063/0.1462, allocations: 0.8048 MB / 0.4966 GB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.1462, allocations: 8 kB / 0.4966 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.919e-05/0.1463, allocations: 19.94 kB / 0.4966 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.1463, allocations: 8 kB / 0.4966 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003431/0.1498, allocations: 1.204 MB / 0.4978 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002743/0.1525, allocations: 2.043 MB / 0.4998 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003028/0.1556, allocations: 0.8246 MB / 0.5006 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001583/0.1572, allocations: 497.8 kB / 0.5011 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.333e-05/0.1572, allocations: 15.98 kB / 0.5011 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.42e-05/0.1573, allocations: 50.48 kB / 0.5011 GB, free: 13.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 3.437e-06/0.1573, allocations: 0 / 0.5011 GB, free: 13.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.08528/0.2426, allocations: 15.74 MB / 0.5165 GB, free: 13.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/0.2427, allocations: 90.23 kB / 0.5166 GB, free: 13.88 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00043/0.2431, allocations: 393.4 kB / 0.517 GB, free: 13.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001573/0.2433, allocations: 45.7 kB / 0.517 GB, free: 13.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.2434, allocations: 221 kB / 0.5172 GB, free: 13.21 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003501/0.2438, allocations: 398.1 kB / 0.5176 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005099/0.2443, allocations: 194.9 kB / 0.5178 GB, free: 12.62 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.2444, allocations: 370.8 kB / 0.5181 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003499/0.248, allocations: 1.345 MB / 0.5195 GB, free: 10.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003584/0.2516, allocations: 1.493 MB / 0.5209 GB, free: 9.363 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006469/0.258, allocations: 2.449 MB / 0.5233 GB, free: 6.871 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.258, allocations: 4 kB / 0.5233 GB, free: 6.867 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007409/0.2655, allocations: 2.838 MB / 0.5261 GB, free: 4.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.2655, allocations: 8 kB / 0.5261 GB, free: 4.012 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.2655, allocations: 7.984 kB / 0.5261 GB, free: 4.004 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.459e-05/0.2656, allocations: 8 kB / 0.5261 GB, free: 3.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00264/0.2682, allocations: 403.6 kB / 0.5265 GB, free: 3.602 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.851e-05/0.2682, allocations: 11.94 kB / 0.5265 GB, free: 3.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/0.2701, allocations: 219.7 kB / 0.5267 GB, free: 3.375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/0.2703, allocations: 43.98 kB / 0.5267 GB, free: 3.332 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.000485/0.2708, allocations: 237.8 kB / 0.527 GB, free: 3.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002129/0.271, allocations: 59.25 kB / 0.527 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002684/0.2713, allocations: 108.7 kB / 0.5271 GB, free: 2.926 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.2713, allocations: 12 kB / 0.5271 GB, free: 2.914 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.2713, allocations: 3.938 kB / 0.5271 GB, free: 2.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/0.2713, allocations: 11.97 kB / 0.5272 GB, free: 2.898 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2638/0.5352, allocations: 5.218 MB / 0.5323 GB, free: 41.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.86e-05/0.5352, allocations: 23.47 kB / 0.5323 GB, free: 41.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001593/0.5368, allocations: 351.2 kB / 0.5326 GB, free: 41.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.976e-05/0.5369, allocations: 28.98 kB / 0.5326 GB, free: 41.1 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.644e-05/0.537, allocations: 45.91 kB / 0.5327 GB, free: 41.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-05/0.537, allocations: 46.5 kB / 0.5327 GB, free: 41.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.593e-05/0.5371, allocations: 32.16 kB / 0.5328 GB, free: 41.08 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007343/0.5444, allocations: 3.089 MB / 0.5358 GB, free: 40.05 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004305/0.5449, allocations: 239.5 kB / 0.536 GB, free: 39.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/0.545, allocations: 54.69 kB / 0.5361 GB, free: 39.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001305/0.5463, allocations: 188.7 kB / 0.5362 GB, free: 39.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003973/0.5467, allocations: 219.9 kB / 0.5364 GB, free: 39.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.258e-05/0.5468, allocations: 56.62 kB / 0.5365 GB, free: 39.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002542/0.5471, allocations: 263.4 kB / 0.5368 GB, free: 39.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5471, allocations: 0 / 0.5368 GB, free: 39.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009596/0.5481, allocations: 228.7 kB / 0.537 GB, free: 39.82 MB / 414.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.0002294/0.5483, allocations: 175.1 kB / 0.5371 GB, free: 39.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006557/0.5549, allocations: 2.385 MB / 0.5395 GB, free: 39.1 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.825e-05/0.5549, allocations: 4.625 kB / 0.5395 GB, free: 39.1 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003746/0.5587, allocations: 1.067 MB / 0.5405 GB, free: 38.76 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.56, allocations: 160.3 kB / 0.5407 GB, free: 38.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003623/0.5637, allocations: 1.942 MB / 0.5426 GB, free: 37.27 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005229/0.5642, allocations: 0.9225 MB / 0.5435 GB, free: 36.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001002/0.5652, allocations: 208.4 kB / 0.5437 GB, free: 36.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005669/0.5658, allocations: 71.25 kB / 0.5437 GB, free: 36.47 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5658, allocations: 0 / 0.5437 GB, free: 36.47 MB / 414.1 MB Notification: Performance of Templates: time 0.02802/0.5938, allocations: 16.88 MB / 0.5602 GB, free: 28.13 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches