Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.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.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009737/0.0009737, allocations: 197.7 kB / 16.79 MB, free: 5.043 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 226.5 MB / 244.1 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007462/0.0007462, allocations: 99.09 kB / 296.1 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2908/0.2908, allocations: 44.83 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002473/0.0002473, allocations: 8 kB / 465.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2842, allocations: 62.96 MB / 0.5165 GB, free: 37.1 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09632/0.3806, allocations: 88.99 MB / 0.6034 GB, free: 432 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002137/0.3808, allocations: 71.91 kB / 0.6034 GB, free: 360 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01633/0.3972, allocations: 6.5 MB / 0.6098 GB, free: 9.812 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3972, allocations: 0 / 0.6098 GB, free: 9.812 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.866e-05/0.3972, allocations: 8 kB / 0.6098 GB, free: 9.805 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0008256/0.3981, allocations: 0.6048 MB / 0.6104 GB, free: 9.145 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.3981, allocations: 8.875 kB / 0.6104 GB, free: 9.137 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002978/0.3984, allocations: 72.44 kB / 0.6105 GB, free: 9.066 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002813/0.3987, allocations: 288.5 kB / 0.6107 GB, free: 8.742 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.3988, allocations: 29.38 kB / 0.6108 GB, free: 8.715 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.345e-05/0.3988, allocations: 40.38 kB / 0.6108 GB, free: 8.676 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006124/0.3994, allocations: 381.6 kB / 0.6112 GB, free: 8.285 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.37e-05/0.3995, allocations: 4.094 kB / 0.6112 GB, free: 8.281 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.519e-05/0.3995, allocations: 27.88 kB / 0.6112 GB, free: 8.254 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.3995, allocations: 12 kB / 0.6112 GB, free: 8.242 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004774/0.4, allocations: 257.1 kB / 0.6115 GB, free: 7.992 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001452/0.4015, allocations: 1.109 MB / 0.6125 GB, free: 6.824 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005199/0.402, allocations: 351.5 kB / 0.6129 GB, free: 6.453 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002917/0.4023, allocations: 190.8 kB / 0.6131 GB, free: 6.262 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.158e-05/0.4024, allocations: 8 kB / 0.6131 GB, free: 6.254 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/0.4024, allocations: 42.5 kB / 0.6131 GB, free: 6.203 MB / 426.7 MB Notification: Performance of pre-optimization done (n=39): time 1.793e-06/0.4024, allocations: 0 / 0.6131 GB, free: 6.203 MB / 426.7 MB Notification: Performance of matching and sorting (n=57): time 0.00368/0.4061, allocations: 2.476 MB / 0.6155 GB, free: 3.461 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.042e-05/0.4062, allocations: 110.8 kB / 0.6156 GB, free: 3.328 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002928/0.4065, allocations: 234.6 kB / 0.6159 GB, free: 3.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.87e-05/0.4065, allocations: 33.7 kB / 0.6159 GB, free: 3.051 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.4067, allocations: 180.7 kB / 0.6161 GB, free: 2.871 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.4068, allocations: 209 kB / 0.6163 GB, free: 2.664 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.039e-05/0.4069, allocations: 8 kB / 0.6163 GB, free: 2.656 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.4071, allocations: 354.7 kB / 0.6166 GB, free: 2.301 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002744/0.4074, allocations: 133.1 kB / 0.6167 GB, free: 2.172 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003564/0.4077, allocations: 231.8 kB / 0.6169 GB, free: 1.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006589/0.4084, allocations: 412.4 kB / 0.6173 GB, free: 1.473 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4084, allocations: 4 kB / 0.6173 GB, free: 1.469 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001071/0.4095, allocations: 0.572 MB / 0.6179 GB, free: 0.8828 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.4095, allocations: 4 kB / 0.6179 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.4095, allocations: 4 kB / 0.6179 GB, free: 0.875 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003755/0.4099, allocations: 126.4 kB / 0.618 GB, free: 0.7422 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003773/0.4103, allocations: 95.89 kB / 0.6181 GB, free: 0.6484 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003829/0.4141, allocations: 4.68 MB / 0.6227 GB, free: 11.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002544/0.4144, allocations: 28.05 kB / 0.6227 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.106e-05/0.4145, allocations: 16 kB / 0.6227 GB, free: 11.52 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 48 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002517/0.4147, allocations: 161.8 kB / 0.6229 GB, free: 11.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.4148, allocations: 39.53 kB / 0.6229 GB, free: 11.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.4149, allocations: 50.11 kB / 0.623 GB, free: 11.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.4149, allocations: 8 kB / 0.623 GB, free: 11.26 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/0.415, allocations: 4 kB / 0.623 GB, free: 11.25 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.415, allocations: 7.984 kB / 0.623 GB, free: 11.25 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002254/0.4172, allocations: 1.336 MB / 0.6243 GB, free: 9.836 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.814e-06/0.4173, allocations: 7.938 kB / 0.6243 GB, free: 9.828 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000434/0.4177, allocations: 95.88 kB / 0.6244 GB, free: 9.734 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002939/0.418, allocations: 102.5 kB / 0.6245 GB, free: 9.625 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.548e-05/0.418, allocations: 12 kB / 0.6245 GB, free: 9.613 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003113/0.4212, allocations: 4.115 MB / 0.6285 GB, free: 5.098 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.4212, allocations: 4.031 kB / 0.6285 GB, free: 5.094 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.4226, allocations: 0.9461 MB / 0.6295 GB, free: 4.113 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.4228, allocations: 112.7 kB / 0.6296 GB, free: 3.984 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.861e-05/0.4228, allocations: 12.06 kB / 0.6296 GB, free: 3.973 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/0.4231, allocations: 20 kB / 0.6296 GB, free: 3.953 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/0.4232, allocations: 47.81 kB / 0.6296 GB, free: 3.906 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.304e-05/0.4233, allocations: 19.98 kB / 0.6297 GB, free: 3.887 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001767/0.4235, allocations: 174 kB / 0.6298 GB, free: 3.719 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4235, allocations: 0 / 0.6298 GB, free: 3.719 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007617/0.4242, allocations: 124 kB / 0.6299 GB, free: 3.598 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002006/0.4244, allocations: 115.7 kB / 0.6301 GB, free: 3.477 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.4259, allocations: 0.7733 MB / 0.6308 GB, free: 2.664 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.4259, allocations: 0 / 0.6308 GB, free: 2.664 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007523/0.4267, allocations: 0.5858 MB / 0.6314 GB, free: 2.039 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006955/0.4274, allocations: 65.84 kB / 0.6314 GB, free: 1.98 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001948/0.4293, allocations: 1.324 MB / 0.6327 GB, free: 0.6055 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003944/0.4297, allocations: 0.8202 MB / 0.6335 GB, free: 15.76 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.4299, allocations: 35.44 kB / 0.6336 GB, free: 15.72 MB / 458.7 MB Notification: Performance of SimCode: time 5.61e-07/0.4299, allocations: 0 / 0.6336 GB, free: 15.72 MB / 458.7 MB Notification: Performance of Templates: time 0.01145/0.4413, allocations: 9.223 MB / 0.6426 GB, free: 6.488 MB / 458.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches