Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.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.Rotational.AllComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|accelerate.phi|accelerate.w|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|gear2_1.phi_rel|gear2_1.w_rel|inertia13.phi|inertia13.w|inertia14.phi|inertia14.w|inertia15.phi|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia8.phi|inertia8.w|position.phi|position.w|speed.phi|speed.w|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|gear2_1.lossyGear.mode|lossyGear.mode",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents") translateModel(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|accelerate.phi|accelerate.w|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|gear2_1.phi_rel|gear2_1.w_rel|inertia13.phi|inertia13.w|inertia14.phi|inertia14.w|inertia15.phi|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia8.phi|inertia8.w|position.phi|position.w|speed.phi|speed.w|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|gear2_1.lossyGear.mode|lossyGear.mode",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001474/0.001473, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.913/1.913, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001136/0.001136, allocations: 94.09 kB / 270.9 MB, free: 8.379 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.5362/0.5362, allocations: 43.54 MB / 362.7 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006793/0.0006794, allocations: 12 kB / 431.4 MB, free: 5.945 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1589/0.1596, allocations: 58.84 MB / 490.2 MB, free: 11.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6068/0.7665, allocations: 105.2 MB / 0.5814 GB, free: 13.36 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.7668, allocations: 66.41 kB / 0.5815 GB, free: 13.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2328/0.9997, allocations: 49.28 MB / 0.6296 GB, free: 11.93 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.9997, allocations: 0 / 0.6296 GB, free: 11.93 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001611/0.9999, allocations: 51.98 kB / 0.6297 GB, free: 11.88 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.01158/1.011, allocations: 2.534 MB / 0.6321 GB, free: 9.281 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/1.012, allocations: 12.03 kB / 0.6321 GB, free: 9.27 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00187/1.013, allocations: 301.8 kB / 0.6324 GB, free: 8.973 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003081/1.017, allocations: 0.9784 MB / 0.6334 GB, free: 7.938 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001256/1.018, allocations: 468.1 kB / 0.6338 GB, free: 7.434 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008198/1.019, allocations: 235.7 kB / 0.6341 GB, free: 7.203 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009792/1.028, allocations: 2.596 MB / 0.6366 GB, free: 4.52 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001868/1.029, allocations: 27.66 kB / 0.6366 GB, free: 4.492 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003705/1.029, allocations: 88 kB / 0.6367 GB, free: 4.406 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.459e-05/1.029, allocations: 59.98 kB / 0.6368 GB, free: 4.348 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0116/1.041, allocations: 2.668 MB / 0.6394 GB, free: 1.672 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02422/1.065, allocations: 6.771 MB / 0.646 GB, free: 10.8 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009185/1.074, allocations: 2.514 MB / 0.6484 GB, free: 8.16 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007279/1.075, allocations: 127.6 kB / 0.6486 GB, free: 8.02 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.785e-05/1.075, allocations: 68.94 kB / 0.6486 GB, free: 7.945 MB / 474.7 MB Notification: Performance of pre-optimization done (n=280): time 6.301e-06/1.075, allocations: 0 / 0.6486 GB, free: 7.945 MB / 474.7 MB Notification: Performance of matching and sorting (n=338): time 0.06024/1.135, allocations: 14.53 MB / 0.6628 GB, free: 8.816 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002231/1.136, allocations: 333.3 kB / 0.6631 GB, free: 8.426 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002351/1.138, allocations: 0.9222 MB / 0.664 GB, free: 7.496 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008363/1.139, allocations: 93.7 kB / 0.6641 GB, free: 7.398 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007693/1.14, allocations: 0.6577 MB / 0.6648 GB, free: 6.734 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002102/1.142, allocations: 1.132 MB / 0.6659 GB, free: 5.586 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005181/1.142, allocations: 68 kB / 0.6659 GB, free: 5.52 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003318/1.143, allocations: 429.5 kB / 0.6663 GB, free: 5.09 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004985/1.148, allocations: 1.099 MB / 0.6674 GB, free: 3.988 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005675/1.153, allocations: 1.504 MB / 0.6689 GB, free: 2.363 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004897/1.158, allocations: 1.125 MB / 0.67 GB, free: 1.254 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.018e-05/1.159, allocations: 0 / 0.67 GB, free: 1.254 MB / 490.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.345/1.504, allocations: 3.405 MB / 0.6733 GB, free: 111.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.169e-05/1.504, allocations: 11.48 kB / 0.6733 GB, free: 111.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-05/1.504, allocations: 11.23 kB / 0.6733 GB, free: 111.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004229/1.508, allocations: 1.053 MB / 0.6744 GB, free: 111.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006168/1.514, allocations: 0.7487 MB / 0.6751 GB, free: 111.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01448/1.529, allocations: 7.53 MB / 0.6824 GB, free: 107.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004129/1.533, allocations: 298.5 kB / 0.6827 GB, free: 107.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005123/1.533, allocations: 125.4 kB / 0.6829 GB, free: 107.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001552/1.535, allocations: 474.2 kB / 0.6833 GB, free: 107.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007681/1.536, allocations: 223.1 kB / 0.6835 GB, free: 107.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008622/1.544, allocations: 2.508 MB / 0.686 GB, free: 107.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.514e-05/1.545, allocations: 34.62 kB / 0.686 GB, free: 107.1 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.281e-05/1.545, allocations: 3.188 kB / 0.686 GB, free: 107.1 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.293e-05/1.545, allocations: 18.31 kB / 0.686 GB, free: 107.1 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02476/1.569, allocations: 7.767 MB / 0.6936 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.921e-05/1.569, allocations: 6.438 kB / 0.6936 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005962/1.575, allocations: 0.7372 MB / 0.6943 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003745/1.579, allocations: 1.045 MB / 0.6954 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004548/1.58, allocations: 104.8 kB / 0.6955 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0142/1.594, allocations: 10.19 MB / 0.7054 GB, free: 98.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.181e-05/1.594, allocations: 12.73 kB / 0.7054 GB, free: 98.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01887/1.613, allocations: 6.523 MB / 0.7118 GB, free: 94.71 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001723/1.615, allocations: 0.5296 MB / 0.7123 GB, free: 94.38 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005957/1.615, allocations: 91.27 kB / 0.7124 GB, free: 94.32 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003726/1.619, allocations: 298.5 kB / 0.7127 GB, free: 94.29 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001594/1.621, allocations: 457.7 kB / 0.7131 GB, free: 94.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003906/1.621, allocations: 123 kB / 0.7132 GB, free: 94.18 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001608/1.623, allocations: 0.7187 MB / 0.7139 GB, free: 93.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.623, allocations: 4.594 kB / 0.7139 GB, free: 93.89 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004281/1.627, allocations: 0.7318 MB / 0.7146 GB, free: 93.79 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 263 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009003/1.628, allocations: 276.9 kB / 0.7149 GB, free: 93.61 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0124/1.64, allocations: 3.511 MB / 0.7183 GB, free: 92.24 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.355e-05/1.64, allocations: 1.344 kB / 0.7183 GB, free: 92.24 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009832/1.65, allocations: 2.819 MB / 0.7211 GB, free: 90.92 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003554/1.654, allocations: 313.8 kB / 0.7214 GB, free: 90.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02074/1.675, allocations: 7.628 MB / 0.7288 GB, free: 86.36 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001769/1.676, allocations: 1.591 MB / 0.7304 GB, free: 85.58 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001703/1.678, allocations: 205.2 kB / 0.7306 GB, free: 85.56 MB / 490.7 MB Notification: Performance of SimCode: time 1.333e-06/1.678, allocations: 0 / 0.7306 GB, free: 85.56 MB / 490.7 MB Notification: Performance of Templates: time 0.1041/1.782, allocations: 71.22 MB / 0.8001 GB, free: 43.78 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/AllComponents/AllComponents.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches