Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009718/0.0009718, allocations: 194.6 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 226.5 MB / 244.1 MB, free: 6.395 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008428/0.0008428, allocations: 95.66 kB / 296.1 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3371/0.3371, allocations: 44.83 MB / 392.9 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002801/0.0002801, allocations: 11.98 kB / 465.9 MB, free: 12.76 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3338, allocations: 62.95 MB / 0.5165 GB, free: 36.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1147/0.4485, allocations: 90.19 MB / 0.6045 GB, free: 15.23 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001714/0.4487, allocations: 63.97 kB / 0.6046 GB, free: 15.17 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03566/0.4844, allocations: 11.93 MB / 0.6162 GB, free: 3.211 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.4845, allocations: 0 / 0.6162 GB, free: 3.211 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.551e-05/0.4845, allocations: 8 kB / 0.6163 GB, free: 3.203 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.00225/0.4868, allocations: 0.947 MB / 0.6172 GB, free: 2.203 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.4868, allocations: 8.875 kB / 0.6172 GB, free: 2.195 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/0.487, allocations: 60.38 kB / 0.6172 GB, free: 2.137 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005909/0.4876, allocations: 367.4 kB / 0.6176 GB, free: 1.738 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003797/0.488, allocations: 279.7 kB / 0.6179 GB, free: 1.426 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/0.4881, allocations: 48.28 kB / 0.6179 GB, free: 1.379 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002148/0.4903, allocations: 0.8716 MB / 0.6188 GB, free: 480 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/0.4903, allocations: 7.938 kB / 0.6188 GB, free: 472 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.25e-05/0.4904, allocations: 16 kB / 0.6188 GB, free: 456 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/0.4904, allocations: 8 kB / 0.6188 GB, free: 448 kB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003609/0.494, allocations: 1.349 MB / 0.6201 GB, free: 15.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002977/0.497, allocations: 2.076 MB / 0.6221 GB, free: 12.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002658/0.4997, allocations: 0.873 MB / 0.623 GB, free: 12.04 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001488/0.5012, allocations: 0.557 MB / 0.6235 GB, free: 11.48 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.507e-05/0.5013, allocations: 12.55 kB / 0.6235 GB, free: 11.47 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.5014, allocations: 47.62 kB / 0.6236 GB, free: 11.41 MB / 442.7 MB Notification: Performance of pre-optimization done (n=66): time 2.665e-06/0.5014, allocations: 0 / 0.6236 GB, free: 11.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.08436/0.5857, allocations: 18.29 MB / 0.6415 GB, free: 8.945 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.127e-05/0.5858, allocations: 98.17 kB / 0.6415 GB, free: 8.828 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005599/0.5864, allocations: 409.5 kB / 0.6419 GB, free: 8.422 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002001/0.5866, allocations: 41.7 kB / 0.642 GB, free: 8.375 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.5868, allocations: 221.1 kB / 0.6422 GB, free: 8.152 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004277/0.5872, allocations: 398.1 kB / 0.6426 GB, free: 7.758 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.5874, allocations: 24 kB / 0.6426 GB, free: 7.734 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.5876, allocations: 382.7 kB / 0.643 GB, free: 7.352 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003726/0.5913, allocations: 1.455 MB / 0.6444 GB, free: 5.898 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003808/0.5951, allocations: 1.614 MB / 0.646 GB, free: 4.238 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006871/0.602, allocations: 2.683 MB / 0.6486 GB, free: 1.512 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.602, allocations: 0 / 0.6486 GB, free: 1.512 MB / 458.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.007992/0.61, allocations: 3.075 MB / 0.6516 GB, free: 14.43 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.878e-05/0.6101, allocations: 10.91 kB / 0.6516 GB, free: 14.42 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-05/0.6101, allocations: 4 kB / 0.6516 GB, free: 14.42 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.642e-05/0.6102, allocations: 8 kB / 0.6516 GB, free: 14.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002679/0.6129, allocations: 475.6 kB / 0.652 GB, free: 13.95 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.083e-05/0.6129, allocations: 8 kB / 0.6521 GB, free: 13.94 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002074/0.615, allocations: 283.6 kB / 0.6523 GB, free: 13.66 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001936/0.6152, allocations: 43.98 kB / 0.6524 GB, free: 13.62 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.0006005/0.6158, allocations: 238.1 kB / 0.6526 GB, free: 13.38 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002888/0.6161, allocations: 59.25 kB / 0.6527 GB, free: 13.32 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002997/0.6164, allocations: 108.7 kB / 0.6528 GB, free: 13.21 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/0.6164, allocations: 12 kB / 0.6528 GB, free: 13.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/0.6165, allocations: 0 / 0.6528 GB, free: 13.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.619e-05/0.6165, allocations: 11.91 kB / 0.6528 GB, free: 13.18 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0122/0.6287, allocations: 5.591 MB / 0.6582 GB, free: 7.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.305e-05/0.6288, allocations: 24 kB / 0.6583 GB, free: 7.227 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001523/0.6303, allocations: 415.5 kB / 0.6587 GB, free: 6.82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.163e-05/0.6304, allocations: 28 kB / 0.6587 GB, free: 6.793 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/0.6305, allocations: 48 kB / 0.6587 GB, free: 6.746 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.31e-05/0.6305, allocations: 43.86 kB / 0.6588 GB, free: 6.703 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-05/0.6306, allocations: 35.86 kB / 0.6588 GB, free: 6.668 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007541/0.6381, allocations: 3.456 MB / 0.6622 GB, free: 2.918 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004559/0.6386, allocations: 240.3 kB / 0.6624 GB, free: 2.664 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001616/0.6388, allocations: 51.98 kB / 0.6625 GB, free: 2.613 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.6402, allocations: 255.8 kB / 0.6627 GB, free: 2.363 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004835/0.6407, allocations: 239.1 kB / 0.6629 GB, free: 2.129 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/0.6408, allocations: 56 kB / 0.663 GB, free: 2.074 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003957/0.6412, allocations: 283.1 kB / 0.6633 GB, free: 1.797 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.6412, allocations: 4 kB / 0.6633 GB, free: 1.793 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001234/0.6425, allocations: 239.9 kB / 0.6635 GB, free: 1.559 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.0002773/0.6427, allocations: 166.8 kB / 0.6636 GB, free: 1.387 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006383/0.6491, allocations: 2.594 MB / 0.6662 GB, free: 14.79 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/0.6492, allocations: 0 / 0.6662 GB, free: 14.79 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003382/0.6526, allocations: 1.19 MB / 0.6673 GB, free: 13.61 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002064/0.6546, allocations: 153.4 kB / 0.6675 GB, free: 13.46 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003879/0.6585, allocations: 2.223 MB / 0.6697 GB, free: 10.91 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000557/0.6591, allocations: 0.9243 MB / 0.6706 GB, free: 9.953 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007132/0.6598, allocations: 71.42 kB / 0.6706 GB, free: 9.883 MB / 490.7 MB Notification: Performance of SimCode: time 7.92e-07/0.6598, allocations: 0 / 0.6706 GB, free: 9.883 MB / 490.7 MB Notification: Performance of Templates: time 0.2183/0.8781, allocations: 14.17 MB / 0.6845 GB, free: 134.4 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches