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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001522/0.001522, allocations: 200.7 kB / 18.11 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 226.5 MB / 245.4 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007425/0.0007426, allocations: 100.6 kB / 297.5 MB, free: 6.645 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3755/0.3755, allocations: 44.83 MB / 394.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002631/0.0002629, allocations: 15.98 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3482, allocations: 62.95 MB / 0.5184 GB, free: 37.51 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1244/0.4726, allocations: 90.19 MB / 0.6065 GB, free: 15.11 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003494/0.473, allocations: 71.95 kB / 0.6065 GB, free: 15.04 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03491/0.508, allocations: 11.92 MB / 0.6182 GB, free: 3.09 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.508, allocations: 0 / 0.6182 GB, free: 3.09 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.648e-05/0.508, allocations: 8 kB / 0.6182 GB, free: 3.082 MB / 426.7 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.002053/0.5101, allocations: 0.9509 MB / 0.6191 GB, free: 2.078 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.5102, allocations: 12.03 kB / 0.6191 GB, free: 2.066 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001205/0.5103, allocations: 60.38 kB / 0.6192 GB, free: 2.008 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005535/0.5108, allocations: 371.3 kB / 0.6195 GB, free: 1.605 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003827/0.5112, allocations: 283.7 kB / 0.6198 GB, free: 1.289 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.358e-05/0.5113, allocations: 40.28 kB / 0.6199 GB, free: 1.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002032/0.5134, allocations: 0.8833 MB / 0.6207 GB, free: 336 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.5134, allocations: 3.938 kB / 0.6207 GB, free: 332 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.592e-05/0.5135, allocations: 16 kB / 0.6207 GB, free: 316 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.5135, allocations: 12 kB / 0.6207 GB, free: 304 kB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003472/0.517, allocations: 1.345 MB / 0.6221 GB, free: 14.95 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00354/0.5205, allocations: 2.082 MB / 0.6241 GB, free: 12.79 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002751/0.5233, allocations: 0.87 MB / 0.6249 GB, free: 11.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001488/0.5248, allocations: 0.5609 MB / 0.6255 GB, free: 11.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.505e-05/0.5249, allocations: 12.55 kB / 0.6255 GB, free: 11.32 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/0.525, allocations: 39.62 kB / 0.6255 GB, free: 11.28 MB / 442.7 MB Notification: Performance of pre-optimization done (n=66): time 4.989e-06/0.525, allocations: 0 / 0.6255 GB, free: 11.28 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.1223/0.6473, allocations: 18.29 MB / 0.6434 GB, free: 8.812 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.6474, allocations: 90.23 kB / 0.6435 GB, free: 8.703 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/0.6485, allocations: 409.4 kB / 0.6439 GB, free: 8.297 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003599/0.6489, allocations: 45.7 kB / 0.6439 GB, free: 8.246 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002556/0.6491, allocations: 221.1 kB / 0.6441 GB, free: 8.023 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007457/0.6499, allocations: 406.1 kB / 0.6445 GB, free: 7.621 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002598/0.6502, allocations: 24 kB / 0.6445 GB, free: 7.598 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002129/0.6504, allocations: 374.7 kB / 0.6449 GB, free: 7.223 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003753/0.6542, allocations: 1.463 MB / 0.6463 GB, free: 5.762 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003825/0.658, allocations: 1.615 MB / 0.6479 GB, free: 4.102 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006928/0.665, allocations: 2.672 MB / 0.6505 GB, free: 1.383 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.185e-05/0.665, allocations: 4 kB / 0.6505 GB, free: 1.379 MB / 458.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.008109/0.6731, allocations: 3.072 MB / 0.6535 GB, free: 14.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/0.6732, allocations: 8 kB / 0.6535 GB, free: 14.29 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.728e-05/0.6732, allocations: 4 kB / 0.6535 GB, free: 14.29 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.344e-05/0.6733, allocations: 8 kB / 0.6535 GB, free: 14.28 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002688/0.676, allocations: 467.6 kB / 0.654 GB, free: 13.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.932e-05/0.676, allocations: 12 kB / 0.654 GB, free: 13.81 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002122/0.6781, allocations: 287.6 kB / 0.6543 GB, free: 13.53 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002131/0.6784, allocations: 43.98 kB / 0.6543 GB, free: 13.48 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 12 (kinematicPTP2a.noWphase,kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP2b.noWphase,kinematicPTP1a.noWphase,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,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 (150): * Single equations (assignments): 150 * 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.0006176/0.679, allocations: 231 kB / 0.6545 GB, free: 13.25 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002736/0.6793, allocations: 63.25 kB / 0.6546 GB, free: 13.19 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002537/0.6796, allocations: 112.7 kB / 0.6547 GB, free: 13.07 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-05/0.6796, allocations: 15.98 kB / 0.6547 GB, free: 13.06 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.471e-05/0.6796, allocations: 4 kB / 0.6547 GB, free: 13.05 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.6796, allocations: 7.922 kB / 0.6547 GB, free: 13.05 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01227/0.6919, allocations: 5.593 MB / 0.6602 GB, free: 7.113 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.406e-05/0.692, allocations: 23.94 kB / 0.6602 GB, free: 7.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001529/0.6935, allocations: 411.6 kB / 0.6606 GB, free: 6.688 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-05/0.6936, allocations: 28 kB / 0.6606 GB, free: 6.66 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001125/0.6937, allocations: 52 kB / 0.6607 GB, free: 6.609 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.361e-05/0.6937, allocations: 35.86 kB / 0.6607 GB, free: 6.574 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.44e-05/0.6938, allocations: 31.88 kB / 0.6607 GB, free: 6.543 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007548/0.7013, allocations: 3.455 MB / 0.6641 GB, free: 2.793 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005975/0.702, allocations: 244.3 kB / 0.6643 GB, free: 2.535 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001689/0.7021, allocations: 51.98 kB / 0.6644 GB, free: 2.484 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001428/0.7036, allocations: 255.8 kB / 0.6646 GB, free: 2.234 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005277/0.7041, allocations: 247.1 kB / 0.6649 GB, free: 1.992 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001355/0.7043, allocations: 56 kB / 0.6649 GB, free: 1.938 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004705/0.7047, allocations: 275.1 kB / 0.6652 GB, free: 1.668 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7048, allocations: 0 / 0.6652 GB, free: 1.668 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001475/0.7062, allocations: 243.9 kB / 0.6654 GB, free: 1.43 MB / 474.7 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: 8 (kinematicPTP2b.moving[1],kinematicPTP2b.motion_ref,kinematicPTP1b.moving[1],kinematicPTP1b.motion_ref,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 (122): * Single equations (assignments): 122 * 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.0003709/0.7066, allocations: 168.5 kB / 0.6656 GB, free: 1.258 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007049/0.7137, allocations: 2.596 MB / 0.6681 GB, free: 14.66 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-05/0.7137, allocations: 4 kB / 0.6681 GB, free: 14.66 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003518/0.7172, allocations: 1.192 MB / 0.6693 GB, free: 13.47 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002222/0.7195, allocations: 156 kB / 0.6694 GB, free: 13.32 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004281/0.7238, allocations: 2.166 MB / 0.6716 GB, free: 10.84 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006275/0.7244, allocations: 0.932 MB / 0.6725 GB, free: 9.875 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001424/0.7259, allocations: 190 kB / 0.6726 GB, free: 9.688 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005984/0.7265, allocations: 67.41 kB / 0.6727 GB, free: 9.621 MB / 490.7 MB Notification: Performance of SimCode: time 1.233e-06/0.7265, allocations: 4 kB / 0.6727 GB, free: 9.617 MB / 490.7 MB Notification: Performance of Templates: time 0.2848/1.011, allocations: 14.86 MB / 0.6872 GB, free: 133.9 MB / 490.7 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","../files/ModelicaTest_trunk_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches