Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_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_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001523/0.001522, allocations: 186.2 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.943/1.943, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001143/0.001143, allocations: 95.39 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.497/0.497, allocations: 43.55 MB / 362.7 MB, free: 52.22 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004564/0.0004564, allocations: 12 kB / 431.4 MB, free: 6.172 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.124, allocations: 58.84 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4772/0.6013, allocations: 88.19 MB / 0.5648 GB, free: 14.55 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.6016, allocations: 63.97 kB / 0.5649 GB, free: 14.48 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05899/0.6606, allocations: 11.76 MB / 0.5764 GB, free: 2.742 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.6606, allocations: 4.125 kB / 0.5764 GB, free: 2.738 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.595e-05/0.6607, allocations: 15.94 kB / 0.5764 GB, free: 2.723 MB / 394.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.00363/0.6643, allocations: 0.9422 MB / 0.5773 GB, free: 1.738 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.6644, allocations: 8.562 kB / 0.5773 GB, free: 1.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/0.6646, allocations: 64.19 kB / 0.5774 GB, free: 1.668 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007533/0.6654, allocations: 370 kB / 0.5777 GB, free: 1.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005939/0.666, allocations: 275.1 kB / 0.578 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.6661, allocations: 40 kB / 0.578 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003964/0.6701, allocations: 0.8721 MB / 0.5789 GB, free: 12 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.233e-05/0.6702, allocations: 7.906 kB / 0.5789 GB, free: 4 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/0.6703, allocations: 16.08 kB / 0.5789 GB, free: 15.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.9e-05/0.6703, allocations: 11.94 kB / 0.5789 GB, free: 15.97 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007256/0.6776, allocations: 1.349 MB / 0.5802 GB, free: 14.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004773/0.6824, allocations: 2.077 MB / 0.5823 GB, free: 12.47 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005493/0.6879, allocations: 0.8702 MB / 0.5831 GB, free: 11.58 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001546/0.6881, allocations: 8.562 kB / 0.5831 GB, free: 11.57 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.284e-05/0.6882, allocations: 39.12 kB / 0.5832 GB, free: 11.53 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 3.567e-06/0.6882, allocations: 0 / 0.5832 GB, free: 11.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.1876/0.8758, allocations: 18.3 MB / 0.601 GB, free: 9.062 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.332e-05/0.8759, allocations: 90.23 kB / 0.6011 GB, free: 8.953 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007536/0.8767, allocations: 372.6 kB / 0.6015 GB, free: 8.586 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002834/0.877, allocations: 45.7 kB / 0.6015 GB, free: 8.535 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001983/0.8772, allocations: 271.5 kB / 0.6018 GB, free: 8.266 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005911/0.8778, allocations: 402.1 kB / 0.6022 GB, free: 7.867 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003116/0.8781, allocations: 28 kB / 0.6022 GB, free: 7.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.8783, allocations: 354.8 kB / 0.6025 GB, free: 7.484 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007421/0.8857, allocations: 1.463 MB / 0.604 GB, free: 6.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00759/0.8933, allocations: 1.611 MB / 0.6055 GB, free: 4.367 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007018/0.9004, allocations: 1.313 MB / 0.6068 GB, free: 3.055 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.9004, allocations: 0 / 0.6068 GB, free: 3.055 MB / 426.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.0156/0.916, allocations: 3.06 MB / 0.6098 GB, free: 15.98 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.492e-05/0.9161, allocations: 8 kB / 0.6098 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.9162, allocations: 3.953 kB / 0.6098 GB, free: 15.97 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.525e-05/0.9162, allocations: 12 kB / 0.6098 GB, free: 15.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005575/0.9218, allocations: 463.5 kB / 0.6103 GB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.646e-05/0.9219, allocations: 19.92 kB / 0.6103 GB, free: 15.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004269/0.9262, allocations: 275.7 kB / 0.6106 GB, free: 15.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003026/0.9265, allocations: 43.98 kB / 0.6106 GB, free: 15.18 MB / 442.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.0007757/0.9273, allocations: 233.6 kB / 0.6108 GB, free: 14.94 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003701/0.9277, allocations: 63.16 kB / 0.6109 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003669/0.9281, allocations: 112.7 kB / 0.611 GB, free: 14.76 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.37e-05/0.9281, allocations: 19.94 kB / 0.611 GB, free: 14.74 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.9281, allocations: 0 / 0.611 GB, free: 14.74 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.837e-05/0.9281, allocations: 7.984 kB / 0.611 GB, free: 14.73 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0229/0.951, allocations: 5.585 MB / 0.6165 GB, free: 8.805 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-05/0.9511, allocations: 21 kB / 0.6165 GB, free: 8.785 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003161/0.9543, allocations: 407.4 kB / 0.6169 GB, free: 8.387 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.431e-05/0.9544, allocations: 35.94 kB / 0.6169 GB, free: 8.352 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001662/0.9545, allocations: 51.98 kB / 0.617 GB, free: 8.301 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.765e-05/0.9546, allocations: 39.86 kB / 0.617 GB, free: 8.262 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.438e-05/0.9547, allocations: 35.81 kB / 0.617 GB, free: 8.227 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0159/0.9706, allocations: 4.544 MB / 0.6215 GB, free: 2.824 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000678/0.9713, allocations: 244.3 kB / 0.6217 GB, free: 2.566 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/0.9715, allocations: 55.92 kB / 0.6218 GB, free: 2.512 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002547/0.9741, allocations: 251.8 kB / 0.622 GB, free: 2.266 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007528/0.9749, allocations: 235.3 kB / 0.6222 GB, free: 2.035 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001506/0.975, allocations: 60 kB / 0.6223 GB, free: 1.977 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005203/0.9756, allocations: 279.1 kB / 0.6225 GB, free: 1.703 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.9756, allocations: 0 / 0.6225 GB, free: 1.703 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001438/0.977, allocations: 236 kB / 0.6228 GB, free: 1.473 MB / 442.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.0003336/0.9774, allocations: 182.7 kB / 0.6229 GB, free: 1.281 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01288/0.9903, allocations: 2.586 MB / 0.6255 GB, free: 14.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.067e-05/0.9903, allocations: 4 kB / 0.6255 GB, free: 14.69 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006814/0.9971, allocations: 1.184 MB / 0.6266 GB, free: 13.51 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/0.9986, allocations: 136.1 kB / 0.6268 GB, free: 13.38 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006709/1.005, allocations: 2.209 MB / 0.6289 GB, free: 10.85 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007658/1.006, allocations: 0.9398 MB / 0.6298 GB, free: 9.883 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001298/1.007, allocations: 75.41 kB / 0.6299 GB, free: 9.809 MB / 458.7 MB Notification: Performance of SimCode: time 1.243e-06/1.007, allocations: 0 / 0.6299 GB, free: 9.809 MB / 458.7 MB Notification: Performance of Templates: time 0.03167/1.039, allocations: 13.77 MB / 0.6434 GB, free: 12.05 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.KinematicPTP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches