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.001243/0.001243, allocations: 100.1 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001534/0.001534, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.662/1.662, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2193/0.2193, allocations: 45.91 MB / 344 MB, free: 12.36 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003888/0.0003888, allocations: 8 kB / 417.9 MB, free: 20.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1468, allocations: 63.46 MB / 481.4 MB, free: 5.445 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.KinematicPTP): time 0.002628/0.1494, allocations: 1.975 MB / 483.4 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001621/0.1511, allocations: 0.9363 MB / 484.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000178/0.1513, allocations: 7.938 kB / 484.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003473/0.1516, allocations: 87.45 kB / 484.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000224/0.1519, allocations: 79.73 kB / 484.5 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006258/0.1525, allocations: 223.1 kB / 484.7 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005951/0.1531, allocations: 431.2 kB / 485.1 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001744/0.1533, allocations: 61.25 kB / 485.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003199/0.1536, allocations: 259.2 kB / 485.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003483/0.154, allocations: 294.9 kB / 485.7 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.172e-05/0.1541, allocations: 32 kB / 485.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.953e-05/0.1541, allocations: 32 kB / 485.8 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001656/0.1543, allocations: 155.5 kB / 485.9 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.1544, allocations: 93.45 kB / 486 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003927/0.1548, allocations: 383.3 kB / 486.4 MB, free: 420 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.1548, allocations: 0 / 486.4 MB, free: 420 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1548, allocations: 0 / 486.4 MB, free: 420 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.415e-06/0.1549, allocations: 4 kB / 486.4 MB, free: 416 kB / 350.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.002237/0.1571, allocations: 0.9198 MB / 487.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.1571, allocations: 12.02 kB / 487.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.1573, allocations: 67.39 kB / 487.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005115/0.1578, allocations: 362 kB / 487.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00036/0.1582, allocations: 279.1 kB / 488 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.129e-05/0.1583, allocations: 43.91 kB / 488.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002088/0.1604, allocations: 0.8593 MB / 488.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/0.1604, allocations: 11.98 kB / 488.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.755e-05/0.1605, allocations: 16 kB / 488.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.1605, allocations: 8 kB / 488.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003513/0.164, allocations: 1.329 MB / 490.3 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002939/0.167, allocations: 2.07 MB / 492.3 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003061/0.17, allocations: 0.8868 MB / 493.2 MB, free: 9.289 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.902e-05/0.1701, allocations: 16.5 kB / 493.2 MB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.1702, allocations: 54.48 kB / 493.3 MB, free: 9.211 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.985e-06/0.1702, allocations: 0 / 493.3 MB, free: 9.211 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.08701/0.2572, allocations: 18.22 MB / 0.4995 GB, free: 6.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.093e-05/0.2573, allocations: 94.23 kB / 0.4996 GB, free: 6.695 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005177/0.2578, allocations: 389.3 kB / 0.5 GB, free: 6.309 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001956/0.258, allocations: 45.7 kB / 0.5 GB, free: 6.258 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.2582, allocations: 225.1 kB / 0.5003 GB, free: 6.031 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004335/0.2586, allocations: 398.1 kB / 0.5006 GB, free: 5.637 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.2588, allocations: 24 kB / 0.5007 GB, free: 5.613 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.259, allocations: 370.8 kB / 0.501 GB, free: 5.242 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003666/0.2627, allocations: 1.451 MB / 0.5024 GB, free: 3.789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004058/0.2667, allocations: 1.603 MB / 0.504 GB, free: 2.145 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003511/0.2703, allocations: 1.316 MB / 0.5053 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.2703, allocations: 0 / 0.5053 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.3029/0.5732, allocations: 3.049 MB / 0.5083 GB, free: 43.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.187e-05/0.5732, allocations: 9.641 kB / 0.5083 GB, free: 43.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.5733, allocations: 3.656 kB / 0.5083 GB, free: 43.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.455e-05/0.5733, allocations: 9.031 kB / 0.5083 GB, free: 43.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002872/0.5762, allocations: 467.7 kB / 0.5087 GB, free: 43.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.893e-05/0.5762, allocations: 8.312 kB / 0.5087 GB, free: 43.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002111/0.5783, allocations: 280.5 kB / 0.509 GB, free: 43.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/0.5785, allocations: 40.61 kB / 0.509 GB, free: 43.65 MB / 382.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.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.0004665/0.579, allocations: 232.7 kB / 0.5093 GB, free: 43.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001977/0.5792, allocations: 63.09 kB / 0.5093 GB, free: 43.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001968/0.5794, allocations: 111.5 kB / 0.5094 GB, free: 43.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/0.5794, allocations: 16.75 kB / 0.5094 GB, free: 43.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.5794, allocations: 0 / 0.5094 GB, free: 43.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.648e-05/0.5795, allocations: 10.23 kB / 0.5095 GB, free: 43.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01221/0.5917, allocations: 5.542 MB / 0.5149 GB, free: 40.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.542e-05/0.5918, allocations: 20.66 kB / 0.5149 GB, free: 40.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001728/0.5935, allocations: 412.2 kB / 0.5153 GB, free: 40.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.813e-05/0.5936, allocations: 30.09 kB / 0.5153 GB, free: 40.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001149/0.5937, allocations: 47.92 kB / 0.5154 GB, free: 40.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.095e-05/0.5938, allocations: 40.62 kB / 0.5154 GB, free: 40.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.608e-05/0.5938, allocations: 30.69 kB / 0.5154 GB, free: 40.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008686/0.6025, allocations: 4.505 MB / 0.5198 GB, free: 37.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005431/0.6031, allocations: 239.2 kB / 0.52 GB, free: 37.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001439/0.6032, allocations: 51.41 kB / 0.5201 GB, free: 37.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001453/0.6047, allocations: 251.6 kB / 0.5203 GB, free: 37.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005202/0.6052, allocations: 236.2 kB / 0.5206 GB, free: 37.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/0.6054, allocations: 52.38 kB / 0.5206 GB, free: 37.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003637/0.6057, allocations: 264.8 kB / 0.5209 GB, free: 36.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6057, allocations: 0 / 0.5209 GB, free: 36.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001207/0.6069, allocations: 229.7 kB / 0.5211 GB, free: 36.93 MB / 382.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 (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.0002555/0.6072, allocations: 163.4 kB / 0.5212 GB, free: 36.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00677/0.614, allocations: 2.561 MB / 0.5237 GB, free: 35.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.614, allocations: 9.156 kB / 0.5237 GB, free: 35.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003159/0.6172, allocations: 1.171 MB / 0.5249 GB, free: 35.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008046/0.618, allocations: 140 kB / 0.525 GB, free: 35.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003221/0.6212, allocations: 2.147 MB / 0.5271 GB, free: 33.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003702/0.6216, allocations: 0.9352 MB / 0.528 GB, free: 33.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001134/0.6227, allocations: 208.3 kB / 0.5282 GB, free: 32.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005292/0.6233, allocations: 66.92 kB / 0.5283 GB, free: 32.92 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.6233, allocations: 7.938 kB / 0.5283 GB, free: 32.91 MB / 382.1 MB Notification: Performance of Templates: time 0.01884/0.6421, allocations: 14.64 MB / 0.5426 GB, free: 19.02 MB / 382.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/KinematicPTP/KinematicPTP.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches