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.001103/0.001103, allocations: 183 kB / 18.09 MB, free: 3.723 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.433/1.433, allocations: 223.3 MB / 242.1 MB, free: 9.859 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007779/0.0007779, allocations: 97.39 kB / 293.3 MB, free: 10.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3377/0.3377, allocations: 44.13 MB / 388.5 MB, free: 38.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004063/0.0004064, allocations: 8 kB / 461.1 MB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3736, allocations: 61.88 MB / 0.5107 GB, free: 37.77 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1462/0.5198, allocations: 106.6 MB / 0.6148 GB, free: 4.469 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/0.5202, allocations: 71.95 kB / 0.6149 GB, free: 4.402 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1444/0.6646, allocations: 49.9 MB / 0.6636 GB, free: 2.328 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.6646, allocations: 0 / 0.6636 GB, free: 2.328 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001853/0.6648, allocations: 47.98 kB / 0.6637 GB, free: 2.281 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.008666/0.6735, allocations: 2.515 MB / 0.6661 GB, free: 15.7 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.6736, allocations: 8.031 kB / 0.6661 GB, free: 15.7 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001864/0.6754, allocations: 301.7 kB / 0.6664 GB, free: 15.4 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003014/0.6785, allocations: 1.026 MB / 0.6674 GB, free: 14.32 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009525/0.6794, allocations: 460.1 kB / 0.6679 GB, free: 13.82 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009568/0.6804, allocations: 247.5 kB / 0.6681 GB, free: 13.58 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007585/0.688, allocations: 2.604 MB / 0.6706 GB, free: 10.88 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002134/0.6883, allocations: 35.7 kB / 0.6707 GB, free: 10.85 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004876/0.6888, allocations: 92 kB / 0.6708 GB, free: 10.76 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-05/0.6889, allocations: 55.98 kB / 0.6708 GB, free: 10.7 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007/0.6959, allocations: 2.676 MB / 0.6734 GB, free: 8.027 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01598/0.7119, allocations: 6.766 MB / 0.68 GB, free: 1.16 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.291/1.003, allocations: 2.508 MB / 0.6825 GB, free: 106 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003437/1.006, allocations: 1.435 MB / 0.6839 GB, free: 105.9 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003079/1.007, allocations: 125.9 kB / 0.684 GB, free: 105.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/1.007, allocations: 73.64 kB / 0.6841 GB, free: 105.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=280): time 5.199e-06/1.007, allocations: 0 / 0.6841 GB, free: 105.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=338): time 0.02819/1.035, allocations: 14.56 MB / 0.6983 GB, free: 101.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/1.035, allocations: 328.7 kB / 0.6986 GB, free: 100.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001439/1.037, allocations: 1.06 MB / 0.6996 GB, free: 100.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003768/1.037, allocations: 97.88 kB / 0.6997 GB, free: 100.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004456/1.037, allocations: 0.6784 MB / 0.7004 GB, free: 100.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009125/1.038, allocations: 1.137 MB / 0.7015 GB, free: 99.82 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002637/1.039, allocations: 66.67 kB / 0.7016 GB, free: 99.82 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001511/1.039, allocations: 421.7 kB / 0.702 GB, free: 99.51 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002379/1.041, allocations: 1.094 MB / 0.703 GB, free: 99.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002571/1.044, allocations: 1.516 MB / 0.7045 GB, free: 99.05 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004263/1.048, allocations: 2.465 MB / 0.7069 GB, free: 97.87 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.528e-05/1.048, allocations: 3.219 kB / 0.7069 GB, free: 97.87 MB / 490.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.007052/1.055, allocations: 3.485 MB / 0.7103 GB, free: 96.61 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.19e-05/1.055, allocations: 9.531 kB / 0.7103 GB, free: 96.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.826e-05/1.055, allocations: 9.719 kB / 0.7104 GB, free: 96.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002276/1.058, allocations: 1.062 MB / 0.7114 GB, free: 96.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002809/1.06, allocations: 0.7471 MB / 0.7121 GB, free: 96.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008158/1.068, allocations: 7.432 MB / 0.7194 GB, free: 90.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002499/1.071, allocations: 299.3 kB / 0.7197 GB, free: 90.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004869/1.072, allocations: 126.1 kB / 0.7198 GB, free: 90.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.001498/1.073, allocations: 474 kB / 0.7202 GB, free: 90.07 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007541/1.074, allocations: 220.7 kB / 0.7205 GB, free: 89.96 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005371/1.079, allocations: 2.502 MB / 0.7229 GB, free: 88.93 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.604e-05/1.079, allocations: 33.22 kB / 0.7229 GB, free: 88.93 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.29e-05/1.079, allocations: 4.156 kB / 0.7229 GB, free: 88.93 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.762e-05/1.079, allocations: 18.55 kB / 0.7229 GB, free: 88.93 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.01646/1.096, allocations: 7.815 MB / 0.7306 GB, free: 85.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.072e-05/1.096, allocations: 8.562 kB / 0.7306 GB, free: 85.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003061/1.099, allocations: 0.7406 MB / 0.7313 GB, free: 85.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002317/1.101, allocations: 1.038 MB / 0.7323 GB, free: 85.02 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004004/1.102, allocations: 105.9 kB / 0.7324 GB, free: 84.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009074/1.111, allocations: 10.07 MB / 0.7423 GB, free: 76.44 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.035e-05/1.111, allocations: 11.11 kB / 0.7423 GB, free: 76.44 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01321/1.124, allocations: 6 MB / 0.7481 GB, free: 73.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001811/1.126, allocations: 0.5301 MB / 0.7486 GB, free: 73.17 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007429/1.127, allocations: 87.52 kB / 0.7487 GB, free: 73.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002729/1.129, allocations: 305 kB / 0.749 GB, free: 73.06 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001234/1.131, allocations: 450.7 kB / 0.7495 GB, free: 72.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004276/1.131, allocations: 128.5 kB / 0.7496 GB, free: 72.95 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001398/1.133, allocations: 0.72 MB / 0.7503 GB, free: 72.67 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.5e-07/1.133, allocations: 0 / 0.7503 GB, free: 72.67 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003692/1.136, allocations: 0.7373 MB / 0.751 GB, free: 72.56 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.0007545/1.137, allocations: 278.4 kB / 0.7513 GB, free: 72.37 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007048/1.144, allocations: 3.52 MB / 0.7547 GB, free: 70.99 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/1.144, allocations: 4.406 kB / 0.7547 GB, free: 70.99 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006017/1.15, allocations: 2.916 MB / 0.7576 GB, free: 69.62 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005591/1.156, allocations: 358.4 kB / 0.7579 GB, free: 69.47 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01276/1.169, allocations: 7.587 MB / 0.7653 GB, free: 65.02 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001579/1.17, allocations: 1.548 MB / 0.7668 GB, free: 64.25 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002056/1.172, allocations: 311.1 kB / 0.7671 GB, free: 64.19 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008916/1.173, allocations: 193.5 kB / 0.7673 GB, free: 64.17 MB / 490.7 MB Notification: Performance of SimCode: time 1.844e-06/1.173, allocations: 4.406 kB / 0.7673 GB, free: 64.16 MB / 490.7 MB Notification: Performance of Templates: time 0.05179/1.225, allocations: 36.45 MB / 0.8029 GB, free: 37.78 MB / 490.7 MB 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/jenkins1/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