Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.266/1.266, allocations: 221.3 MB / 236 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008412/0.0008412, allocations: 84.09 kB / 287 MB, free: 244 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1933/0.1933, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.767e-05/2.77e-05, allocations: 224 / 451.8 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1184, allocations: 61.91 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3844/0.5028, allocations: 106.5 MB / 0.6057 GB, free: 14.84 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/0.5031, allocations: 63.97 kB / 0.6057 GB, free: 14.77 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.134/0.6372, allocations: 50.07 MB / 0.6546 GB, free: 12.53 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.6372, allocations: 0 / 0.6546 GB, free: 12.53 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.249e-05/0.6373, allocations: 44 kB / 0.6547 GB, free: 12.48 MB / 474.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.005172/0.6425, allocations: 2.348 MB / 0.6569 GB, free: 10.08 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.6426, allocations: 8.031 kB / 0.657 GB, free: 10.07 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008674/0.6434, allocations: 296.9 kB / 0.6572 GB, free: 9.777 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001574/0.645, allocations: 0.9745 MB / 0.6582 GB, free: 8.746 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000707/0.6458, allocations: 472 kB / 0.6586 GB, free: 8.238 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003912/0.6462, allocations: 239.7 kB / 0.6589 GB, free: 8.004 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003799/0.65, allocations: 2.347 MB / 0.6612 GB, free: 5.57 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.384e-05/0.6501, allocations: 27.7 kB / 0.6612 GB, free: 5.543 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002091/0.6503, allocations: 92 kB / 0.6613 GB, free: 5.453 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.991e-05/0.6503, allocations: 56 kB / 0.6613 GB, free: 5.398 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003581/0.6539, allocations: 2.2 MB / 0.6635 GB, free: 3.188 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01156/0.6655, allocations: 6.764 MB / 0.6701 GB, free: 12.32 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003303/0.6688, allocations: 2.246 MB / 0.6723 GB, free: 9.941 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001793/0.6706, allocations: 1.197 MB / 0.6734 GB, free: 8.727 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002396/0.6709, allocations: 135 kB / 0.6736 GB, free: 8.574 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.69e-05/0.671, allocations: 68.42 kB / 0.6736 GB, free: 8.496 MB / 490.7 MB Notification: Performance of pre-optimization done (n=280): time 4.659e-06/0.671, allocations: 0 / 0.6736 GB, free: 8.496 MB / 490.7 MB Notification: Performance of matching and sorting (n=338): time 0.01777/0.6887, allocations: 11.1 MB / 0.6845 GB, free: 12.9 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.6889, allocations: 333.4 kB / 0.6848 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/0.69, allocations: 0.9044 MB / 0.6857 GB, free: 11.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002555/0.6903, allocations: 101.7 kB / 0.6858 GB, free: 11.49 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004557/0.6908, allocations: 0.6751 MB / 0.6864 GB, free: 10.81 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008142/0.6916, allocations: 1.143 MB / 0.6876 GB, free: 9.652 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.6918, allocations: 60 kB / 0.6876 GB, free: 9.594 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001782/0.692, allocations: 436.6 kB / 0.688 GB, free: 9.16 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001637/0.6936, allocations: 1.014 MB / 0.689 GB, free: 8.145 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001911/0.6955, allocations: 1.424 MB / 0.6904 GB, free: 6.598 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001596/0.6971, allocations: 1.01 MB / 0.6914 GB, free: 5.594 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.6971, allocations: 8 kB / 0.6914 GB, free: 5.586 MB / 0.4948 GB Notification: Performance of matching and sorting (n=407) (initialization): time 0.005257/0.7024, allocations: 3.281 MB / 0.6946 GB, free: 2.281 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.7024, allocations: 11.94 kB / 0.6946 GB, free: 2.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.807e-05/0.7025, allocations: 12 kB / 0.6946 GB, free: 2.258 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002104/0.7046, allocations: 1.019 MB / 0.6956 GB, free: 1.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002705/0.7073, allocations: 0.749 MB / 0.6964 GB, free: 492 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007869/0.7152, allocations: 7.392 MB / 0.7036 GB, free: 8.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002296/0.7175, allocations: 299.7 kB / 0.7039 GB, free: 8.457 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002683/0.7178, allocations: 128 kB / 0.704 GB, free: 8.332 MB / 0.5105 GB 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 () * 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.0005635/0.7184, allocations: 288.3 kB / 0.7043 GB, free: 8.043 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000454/0.7188, allocations: 217.5 kB / 0.7045 GB, free: 7.828 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003943/0.7228, allocations: 2.292 MB / 0.7067 GB, free: 5.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.763e-05/0.7228, allocations: 32 kB / 0.7067 GB, free: 5.469 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.459e-05/0.7228, allocations: 7.938 kB / 0.7067 GB, free: 5.461 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.607e-05/0.7229, allocations: 19.94 kB / 0.7068 GB, free: 5.441 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.2791/1.002, allocations: 7.339 MB / 0.7139 GB, free: 144.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-05/1.002, allocations: 12.31 kB / 0.7139 GB, free: 144.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003284/1.005, allocations: 0.7388 MB / 0.7147 GB, free: 144.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002341/1.008, allocations: 1.008 MB / 0.7156 GB, free: 144.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000391/1.008, allocations: 106.7 kB / 0.7157 GB, free: 144.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008952/1.017, allocations: 10.02 MB / 0.7255 GB, free: 137.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/1.017, allocations: 13.41 kB / 0.7255 GB, free: 137.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009433/1.027, allocations: 5.743 MB / 0.7312 GB, free: 135.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001325/1.028, allocations: 0.5298 MB / 0.7317 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003606/1.028, allocations: 92.19 kB / 0.7318 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002124/1.03, allocations: 300.4 kB / 0.732 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001057/1.032, allocations: 455.2 kB / 0.7325 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002814/1.032, allocations: 126.3 kB / 0.7326 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001051/1.033, allocations: 0.7015 MB / 0.7333 GB, free: 135.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.31e-07/1.033, allocations: 0 / 0.7333 GB, free: 135.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002947/1.036, allocations: 0.7298 MB / 0.734 GB, free: 135.5 MB / 0.5105 GB 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) * 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.0005316/1.036, allocations: 273.7 kB / 0.7343 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005365/1.042, allocations: 3.093 MB / 0.7373 GB, free: 135 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/1.042, allocations: 1 kB / 0.7373 GB, free: 135 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005428/1.047, allocations: 2.65 MB / 0.7399 GB, free: 134.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002212/1.049, allocations: 313.8 kB / 0.7402 GB, free: 134.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009065/1.059, allocations: 5.705 MB / 0.7457 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0013/1.06, allocations: 1.594 MB / 0.7473 GB, free: 130.7 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001591/1.062, allocations: 312.1 kB / 0.7476 GB, free: 130.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006015/1.062, allocations: 185.5 kB / 0.7478 GB, free: 130.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.272e-06/1.062, allocations: 3.5 kB / 0.7478 GB, free: 130.6 MB / 0.5105 GB Notification: Performance of Templates: time 0.04586/1.108, allocations: 36.24 MB / 0.7832 GB, free: 120.7 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/AllComponents/AllComponents.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches