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.001265/0.001266, allocations: 116.7 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.001608/0.001608, allocations: 194.4 kB / 18.01 MB, free: 5.094 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.295/1.295, 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.1974/0.1974, allocations: 43.52 MB / 314.8 MB, free: 480 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.001401/0.001401, allocations: 75.89 kB / 442.5 MB, free: 5.691 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09956/0.101, allocations: 57.79 MB / 0.4885 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.003207/0.1042, allocations: 2.397 MB / 0.4909 GB, free: 9.418 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.1057, allocations: 0.9951 MB / 0.4918 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.1059, allocations: 7.938 kB / 0.4919 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000331/0.1062, allocations: 115.2 kB / 0.492 GB, free: 8.293 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001977/0.1064, allocations: 103.3 kB / 0.4921 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005724/0.107, allocations: 283.5 kB / 0.4923 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000622/0.1077, allocations: 0.7249 MB / 0.493 GB, free: 7.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001564/0.1078, allocations: 69.05 kB / 0.4931 GB, free: 7.113 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002934/0.1081, allocations: 303 kB / 0.4934 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000365/0.1085, allocations: 334.7 kB / 0.4937 GB, free: 6.488 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000149/0.1087, allocations: 60 kB / 0.4938 GB, free: 6.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.701e-05/0.1087, allocations: 60 kB / 0.4938 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002406/0.109, allocations: 187.5 kB / 0.494 GB, free: 6.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000185/0.1092, allocations: 242.7 kB / 0.4942 GB, free: 5.949 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005124/0.1097, allocations: 0.5606 MB / 0.4948 GB, free: 5.387 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1097, allocations: 0 / 0.4948 GB, free: 5.387 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.1097, allocations: 4 kB / 0.4948 GB, free: 5.383 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.1097, allocations: 3.938 kB / 0.4948 GB, free: 5.379 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.002175/0.1119, allocations: 0.9276 MB / 0.4957 GB, free: 4.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.112, allocations: 11.89 kB / 0.4957 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.1121, allocations: 68.38 kB / 0.4958 GB, free: 4.324 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005946/0.1127, allocations: 387 kB / 0.4961 GB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003256/0.113, allocations: 263.7 kB / 0.4964 GB, free: 3.613 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.557e-05/0.1131, allocations: 40.38 kB / 0.4964 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002155/0.1153, allocations: 0.8126 MB / 0.4972 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.1153, allocations: 0 / 0.4972 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.966e-05/0.1154, allocations: 16 kB / 0.4972 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.1154, allocations: 15.94 kB / 0.4973 GB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003463/0.1189, allocations: 1.2 MB / 0.4984 GB, free: 1.492 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002599/0.1215, allocations: 2.046 MB / 0.5004 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002935/0.1244, allocations: 0.8363 MB / 0.5012 GB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001466/0.1259, allocations: 493.8 kB / 0.5017 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.16e-05/0.126, allocations: 8 kB / 0.5017 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.126, allocations: 42.44 kB / 0.5018 GB, free: 13.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.395e-06/0.126, allocations: 0 / 0.5018 GB, free: 13.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=120): time 0.08388/0.2099, allocations: 15.75 MB / 0.5171 GB, free: 14.03 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.095e-05/0.21, allocations: 90.23 kB / 0.5172 GB, free: 13.92 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004133/0.2104, allocations: 393.4 kB / 0.5176 GB, free: 13.53 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001547/0.2106, allocations: 45.7 kB / 0.5177 GB, free: 13.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.2107, allocations: 213.1 kB / 0.5179 GB, free: 13.26 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003514/0.2111, allocations: 410 kB / 0.5182 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005091/0.2116, allocations: 194.8 kB / 0.5184 GB, free: 12.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.2117, allocations: 378.8 kB / 0.5188 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003489/0.2152, allocations: 1.338 MB / 0.5201 GB, free: 10.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003561/0.2188, allocations: 1.501 MB / 0.5216 GB, free: 9.395 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006491/0.2253, allocations: 2.445 MB / 0.524 GB, free: 6.906 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.2253, allocations: 4 kB / 0.524 GB, free: 6.902 MB / 414.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007439/0.2328, allocations: 2.834 MB / 0.5267 GB, free: 4.059 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.2328, allocations: 4 kB / 0.5267 GB, free: 4.055 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.2328, allocations: 4 kB / 0.5267 GB, free: 4.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.2329, allocations: 8 kB / 0.5267 GB, free: 4.043 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002644/0.2355, allocations: 411.5 kB / 0.5271 GB, free: 3.641 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.892e-05/0.2355, allocations: 11.94 kB / 0.5271 GB, free: 3.629 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001926/0.2375, allocations: 219.7 kB / 0.5274 GB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001376/0.2376, allocations: 40 kB / 0.5274 GB, free: 3.375 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.0004798/0.2381, allocations: 233.8 kB / 0.5276 GB, free: 3.137 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002267/0.2383, allocations: 63.25 kB / 0.5277 GB, free: 3.074 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000288/0.2386, allocations: 116.7 kB / 0.5278 GB, free: 2.961 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.2386, allocations: 16 kB / 0.5278 GB, free: 2.945 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.838e-05/0.2387, allocations: 3.938 kB / 0.5278 GB, free: 2.941 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.2387, allocations: 3.984 kB / 0.5278 GB, free: 2.938 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2276/0.4663, allocations: 5.221 MB / 0.5329 GB, free: 41.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.007e-05/0.4664, allocations: 20.16 kB / 0.5329 GB, free: 41.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001576/0.468, allocations: 352.5 kB / 0.5333 GB, free: 41.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.885e-05/0.468, allocations: 28.34 kB / 0.5333 GB, free: 41.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.4681, allocations: 48.67 kB / 0.5333 GB, free: 41.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.496e-05/0.4682, allocations: 41.02 kB / 0.5334 GB, free: 41.2 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.761e-05/0.4682, allocations: 33.28 kB / 0.5334 GB, free: 41.19 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00746/0.4757, allocations: 3.089 MB / 0.5364 GB, free: 40.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004428/0.4762, allocations: 237.3 kB / 0.5367 GB, free: 40.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.4763, allocations: 50.95 kB / 0.5367 GB, free: 40.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.4776, allocations: 191 kB / 0.5369 GB, free: 40.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004243/0.478, allocations: 218.9 kB / 0.5371 GB, free: 40.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-05/0.4781, allocations: 58.89 kB / 0.5371 GB, free: 40.01 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002856/0.4784, allocations: 263.1 kB / 0.5374 GB, free: 39.92 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4784, allocations: 0 / 0.5374 GB, free: 39.92 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009913/0.4794, allocations: 234.6 kB / 0.5376 GB, free: 39.92 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.0002119/0.4797, allocations: 170.5 kB / 0.5378 GB, free: 39.81 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006416/0.4861, allocations: 2.384 MB / 0.5401 GB, free: 39.19 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.332e-05/0.4861, allocations: 4.906 kB / 0.5401 GB, free: 39.19 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003723/0.4899, allocations: 1.063 MB / 0.5412 GB, free: 38.85 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/0.4913, allocations: 159.3 kB / 0.5413 GB, free: 38.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003653/0.495, allocations: 1.994 MB / 0.5433 GB, free: 37.31 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005504/0.4955, allocations: 0.9272 MB / 0.5442 GB, free: 36.6 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007487/0.4963, allocations: 78.28 kB / 0.5442 GB, free: 36.59 MB / 414.1 MB Notification: Performance of SimCode: time 1.393e-06/0.4963, allocations: 2.344 kB / 0.5442 GB, free: 36.59 MB / 414.1 MB Notification: Performance of Templates: time 0.02684/0.5231, allocations: 14.36 MB / 0.5583 GB, free: 31.04 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