Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001161/0.001161, allocations: 111.4 kB / 17.98 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001305/0.001305, allocations: 201.8 kB / 18.91 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.281/2.281, allocations: 227.4 MB / 247.1 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3921/0.3921, allocations: 46.1 MB / 344.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002627/0.002627, allocations: 75.88 kB / 417.7 MB, free: 7.445 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1615/0.1642, allocations: 62.42 MB / 480.1 MB, free: 8.965 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.005712/0.1699, allocations: 2.468 MB / 482.6 MB, free: 6.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002726/0.1727, allocations: 0.9553 MB / 483.6 MB, free: 5.52 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004089/0.1731, allocations: 15.88 kB / 483.6 MB, free: 5.504 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005528/0.1737, allocations: 103.5 kB / 483.7 MB, free: 5.402 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004801/0.1743, allocations: 75.59 kB / 483.7 MB, free: 5.328 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001046/0.1753, allocations: 255.6 kB / 484 MB, free: 5.078 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001284/0.1766, allocations: 0.7173 MB / 484.7 MB, free: 4.359 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002624/0.1769, allocations: 69.05 kB / 484.8 MB, free: 4.289 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000708/0.1776, allocations: 303 kB / 485.1 MB, free: 3.992 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007519/0.1784, allocations: 338.7 kB / 485.4 MB, free: 3.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002138/0.1786, allocations: 60 kB / 485.5 MB, free: 3.602 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001796/0.1788, allocations: 60 kB / 485.5 MB, free: 3.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003265/0.1792, allocations: 203.5 kB / 485.7 MB, free: 3.344 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004124/0.1796, allocations: 246.8 kB / 486 MB, free: 3.102 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000626/0.1802, allocations: 403.4 kB / 486.4 MB, free: 2.707 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.1802, allocations: 0 / 486.4 MB, free: 2.707 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1803, allocations: 0 / 486.4 MB, free: 2.707 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.197e-05/0.1803, allocations: 0 / 486.4 MB, free: 2.707 MB / 398.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.003861/0.1842, allocations: 0.9354 MB / 487.3 MB, free: 1.723 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.971e-05/0.1842, allocations: 12.03 kB / 487.3 MB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00022/0.1845, allocations: 64.28 kB / 487.4 MB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008585/0.1853, allocations: 371.2 kB / 487.7 MB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006475/0.186, allocations: 263.7 kB / 488 MB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001644/0.1862, allocations: 40.38 kB / 488 MB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003606/0.1898, allocations: 0.8125 MB / 488.8 MB, free: 60 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.258e-05/0.1899, allocations: 7.938 kB / 488.8 MB, free: 52 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.68e-05/0.19, allocations: 16 kB / 488.9 MB, free: 36 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.19, allocations: 8 kB / 488.9 MB, free: 28 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006202/0.1962, allocations: 1.204 MB / 490.1 MB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004834/0.2011, allocations: 2.046 MB / 492.1 MB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00504/0.2062, allocations: 0.8246 MB / 492.9 MB, free: 11.85 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002552/0.2088, allocations: 498.4 kB / 493.4 MB, free: 11.36 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001187/0.2089, allocations: 8 kB / 493.4 MB, free: 11.35 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.933e-05/0.209, allocations: 50.48 kB / 493.5 MB, free: 11.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=64): time 4.428e-06/0.209, allocations: 0 / 493.5 MB, free: 11.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=120): time 0.1491/0.3581, allocations: 15.74 MB / 0.4973 GB, free: 11.38 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.113e-05/0.3582, allocations: 90.23 kB / 0.4974 GB, free: 11.27 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007347/0.359, allocations: 389.4 kB / 0.4977 GB, free: 10.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002841/0.3593, allocations: 49.64 kB / 0.4978 GB, free: 10.82 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002369/0.3595, allocations: 225.1 kB / 0.498 GB, free: 10.6 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006659/0.3602, allocations: 394.2 kB / 0.4984 GB, free: 10.21 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001004/0.3612, allocations: 194.8 kB / 0.4986 GB, free: 10.01 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002351/0.3615, allocations: 374.8 kB / 0.4989 GB, free: 9.637 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006288/0.3678, allocations: 1.345 MB / 0.5002 GB, free: 8.289 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006406/0.3742, allocations: 1.49 MB / 0.5017 GB, free: 6.758 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/0.3858, allocations: 2.445 MB / 0.5041 GB, free: 4.266 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.3858, allocations: 0 / 0.5041 GB, free: 4.266 MB / 430.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.01358/0.3994, allocations: 2.83 MB / 0.5069 GB, free: 1.426 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.665e-05/0.3995, allocations: 8 kB / 0.5069 GB, free: 1.418 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.3995, allocations: 3.938 kB / 0.5069 GB, free: 1.414 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.046e-05/0.3996, allocations: 8 kB / 0.5069 GB, free: 1.406 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004679/0.4043, allocations: 407.7 kB / 0.5073 GB, free: 1.008 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-05/0.4044, allocations: 19.86 kB / 0.5073 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003356/0.4077, allocations: 219.7 kB / 0.5075 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003359/0.4081, allocations: 39.98 kB / 0.5075 GB, free: 0.7344 MB / 430.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.0008559/0.409, allocations: 229.5 kB / 0.5077 GB, free: 0.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004411/0.4094, allocations: 63.25 kB / 0.5078 GB, free: 448 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003417/0.4098, allocations: 116.7 kB / 0.5079 GB, free: 328 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.4098, allocations: 12 kB / 0.5079 GB, free: 316 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.875e-05/0.4098, allocations: 3.938 kB / 0.5079 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.731e-05/0.4099, allocations: 7.922 kB / 0.5079 GB, free: 304 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02/0.4299, allocations: 5.231 MB / 0.513 GB, free: 10.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.726e-05/0.43, allocations: 20.97 kB / 0.5131 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002646/0.4326, allocations: 355.4 kB / 0.5134 GB, free: 10.35 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.942e-05/0.4327, allocations: 28 kB / 0.5134 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002058/0.4329, allocations: 48 kB / 0.5135 GB, free: 10.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.981e-05/0.433, allocations: 43.86 kB / 0.5135 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.251e-05/0.4331, allocations: 39.75 kB / 0.5136 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01229/0.4454, allocations: 3.083 MB / 0.5166 GB, free: 6.812 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007159/0.4461, allocations: 240.3 kB / 0.5168 GB, free: 6.559 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002794/0.4464, allocations: 51.98 kB / 0.5168 GB, free: 6.508 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002373/0.4488, allocations: 191.8 kB / 0.517 GB, free: 6.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007637/0.4496, allocations: 215.2 kB / 0.5172 GB, free: 6.109 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001938/0.4498, allocations: 59.98 kB / 0.5173 GB, free: 6.051 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000501/0.4503, allocations: 259.2 kB / 0.5175 GB, free: 5.797 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4503, allocations: 0 / 0.5175 GB, free: 5.797 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001927/0.4523, allocations: 232 kB / 0.5178 GB, free: 5.57 MB / 446.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.0003672/0.4526, allocations: 169.5 kB / 0.5179 GB, free: 5.398 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01093/0.4636, allocations: 2.409 MB / 0.5203 GB, free: 2.996 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.377e-05/0.4637, allocations: 8 kB / 0.5203 GB, free: 2.988 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005882/0.4695, allocations: 1.063 MB / 0.5213 GB, free: 1.93 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/0.4721, allocations: 147.7 kB / 0.5215 GB, free: 1.785 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006757/0.4789, allocations: 2.262 MB / 0.5237 GB, free: 15.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008884/0.4799, allocations: 0.9282 MB / 0.5246 GB, free: 14.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001217/0.4811, allocations: 75.42 kB / 0.5246 GB, free: 14.18 MB / 462.1 MB Notification: Performance of SimCode: time 2.966e-06/0.4811, allocations: 0 / 0.5246 GB, free: 14.18 MB / 462.1 MB Notification: Performance of Templates: time 0.2878/0.7689, allocations: 14.22 MB / 0.5385 GB, free: 100.2 MB / 462.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches