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.001169/0.001168, allocations: 115.6 kB / 17.08 MB, free: 6.012 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.001344/0.001345, allocations: 197.3 kB / 18.01 MB, free: 5.098 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.359/1.359, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.2101/0.2101, allocations: 43.52 MB / 314.8 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.001622/0.001622, allocations: 59.91 kB / 442.5 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1159, allocations: 57.79 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003937/0.1199, allocations: 2.413 MB / 0.4909 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002019/0.1219, allocations: 0.9873 MB / 0.4918 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003437/0.1223, allocations: 11.88 kB / 0.4919 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004545/0.1228, allocations: 115.3 kB / 0.492 GB, free: 8.273 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003552/0.1231, allocations: 103.3 kB / 0.4921 GB, free: 8.172 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007718/0.124, allocations: 279.5 kB / 0.4923 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009039/0.1249, allocations: 0.7288 MB / 0.493 GB, free: 7.168 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.1251, allocations: 73.05 kB / 0.4931 GB, free: 7.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006374/0.1257, allocations: 303 kB / 0.4934 GB, free: 6.793 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006309/0.1264, allocations: 322.8 kB / 0.4937 GB, free: 6.477 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001708/0.1265, allocations: 67.98 kB / 0.4938 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.1267, allocations: 67.94 kB / 0.4938 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002157/0.1269, allocations: 179.5 kB / 0.494 GB, free: 6.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002677/0.1272, allocations: 242.7 kB / 0.4942 GB, free: 5.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006157/0.1278, allocations: 0.5606 MB / 0.4948 GB, free: 5.367 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1278, allocations: 0 / 0.4948 GB, free: 5.367 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.1278, allocations: 3.984 kB / 0.4948 GB, free: 5.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.351e-05/0.1279, allocations: 0 / 0.4948 GB, free: 5.363 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.002507/0.1304, allocations: 0.9348 MB / 0.4957 GB, free: 4.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.1304, allocations: 11.89 kB / 0.4957 GB, free: 4.371 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001471/0.1306, allocations: 64.36 kB / 0.4958 GB, free: 4.309 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006384/0.1312, allocations: 387 kB / 0.4961 GB, free: 3.891 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003599/0.1316, allocations: 263.7 kB / 0.4964 GB, free: 3.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.1317, allocations: 44.38 kB / 0.4964 GB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002059/0.1338, allocations: 0.8087 MB / 0.4972 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.1338, allocations: 0 / 0.4972 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.971e-05/0.1339, allocations: 16 kB / 0.4972 GB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.1339, allocations: 12 kB / 0.4973 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003597/0.1375, allocations: 1.196 MB / 0.4984 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003115/0.1406, allocations: 2.046 MB / 0.5004 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003126/0.1438, allocations: 0.8251 MB / 0.5012 GB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001529/0.1453, allocations: 0.4901 MB / 0.5017 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.792e-05/0.1454, allocations: 11.98 kB / 0.5017 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.1454, allocations: 46.44 kB / 0.5018 GB, free: 13.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 1.984e-06/0.1454, allocations: 0 / 0.5018 GB, free: 13.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.0899/0.2353, allocations: 15.75 MB / 0.5171 GB, free: 14.02 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.2354, allocations: 94.17 kB / 0.5172 GB, free: 13.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000494/0.2359, allocations: 397.4 kB / 0.5176 GB, free: 13.51 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000173/0.2361, allocations: 45.7 kB / 0.5177 GB, free: 13.46 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000161/0.2363, allocations: 217.1 kB / 0.5179 GB, free: 13.24 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004266/0.2367, allocations: 402.1 kB / 0.5183 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005913/0.2373, allocations: 198.8 kB / 0.5184 GB, free: 12.64 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.2375, allocations: 370.8 kB / 0.5188 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003696/0.2412, allocations: 1.342 MB / 0.5201 GB, free: 10.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003775/0.245, allocations: 1.497 MB / 0.5216 GB, free: 9.383 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006799/0.2518, allocations: 2.449 MB / 0.524 GB, free: 6.891 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.2518, allocations: 0 / 0.524 GB, free: 6.891 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008261/0.2601, allocations: 2.838 MB / 0.5267 GB, free: 4.043 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.322e-05/0.2601, allocations: 4 kB / 0.5267 GB, free: 4.039 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.2602, allocations: 4 kB / 0.5267 GB, free: 4.035 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.034e-05/0.2602, allocations: 8 kB / 0.5267 GB, free: 4.027 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002843/0.2631, allocations: 407.6 kB / 0.5271 GB, free: 3.629 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.17e-05/0.2631, allocations: 11.94 kB / 0.5271 GB, free: 3.617 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002127/0.2652, allocations: 219.7 kB / 0.5274 GB, free: 3.402 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001958/0.2655, allocations: 43.98 kB / 0.5274 GB, free: 3.359 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.0006335/0.2661, allocations: 241.8 kB / 0.5276 GB, free: 3.113 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003281/0.2664, allocations: 59.25 kB / 0.5277 GB, free: 3.055 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002783/0.2667, allocations: 108.7 kB / 0.5278 GB, free: 2.949 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.021e-05/0.2668, allocations: 12 kB / 0.5278 GB, free: 2.938 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.206e-05/0.2668, allocations: 3.938 kB / 0.5278 GB, free: 2.934 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/0.2668, allocations: 7.969 kB / 0.5278 GB, free: 2.926 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2727/0.5395, allocations: 5.226 MB / 0.5329 GB, free: 41.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.356e-05/0.5396, allocations: 22.25 kB / 0.5329 GB, free: 41.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003057/0.5427, allocations: 351.4 kB / 0.5333 GB, free: 41.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.423e-05/0.5428, allocations: 30.19 kB / 0.5333 GB, free: 41.05 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000182/0.543, allocations: 47 kB / 0.5333 GB, free: 41.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.107e-05/0.543, allocations: 41.23 kB / 0.5334 GB, free: 41.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.322e-05/0.5431, allocations: 30.69 kB / 0.5334 GB, free: 41.04 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01358/0.5567, allocations: 3.082 MB / 0.5364 GB, free: 40 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007852/0.5575, allocations: 243.1 kB / 0.5367 GB, free: 39.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003059/0.5579, allocations: 53.06 kB / 0.5367 GB, free: 39.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002553/0.5604, allocations: 187.9 kB / 0.5369 GB, free: 39.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008124/0.5613, allocations: 227 kB / 0.5371 GB, free: 39.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001908/0.5615, allocations: 59.39 kB / 0.5372 GB, free: 39.87 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00051/0.562, allocations: 262.4 kB / 0.5374 GB, free: 39.78 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.562, allocations: 0 / 0.5374 GB, free: 39.78 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00186/0.5639, allocations: 231.4 kB / 0.5376 GB, free: 39.78 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.000324/0.5642, allocations: 166.9 kB / 0.5378 GB, free: 39.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01245/0.5767, allocations: 2.388 MB / 0.5401 GB, free: 39.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-05/0.5768, allocations: 4.531 kB / 0.5401 GB, free: 39.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007319/0.5841, allocations: 1.063 MB / 0.5412 GB, free: 38.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00192/0.5861, allocations: 155.5 kB / 0.5413 GB, free: 38.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004008/0.5901, allocations: 1.999 MB / 0.5433 GB, free: 37.2 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006097/0.5908, allocations: 0.9239 MB / 0.5442 GB, free: 36.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007974/0.5916, allocations: 77.39 kB / 0.5442 GB, free: 36.47 MB / 414.1 MB Notification: Performance of SimCode: time 8.71e-07/0.5916, allocations: 2.344 kB / 0.5442 GB, free: 36.47 MB / 414.1 MB Notification: Performance of Templates: time 0.02467/0.6163, allocations: 14.44 MB / 0.5583 GB, free: 30.82 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches