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.001332/0.001332, allocations: 183.8 kB / 17.06 MB, free: 5.074 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.27/1.27, allocations: 223.2 MB / 241 MB, free: 10.14 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.0008453/0.0008452, allocations: 89.67 kB / 292.1 MB, free: 10.72 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.3122/0.3122, allocations: 44.21 MB / 387.5 MB, free: 38.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003502, allocations: 8 kB / 459.9 MB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3346, allocations: 61.9 MB / 0.5095 GB, free: 37.66 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1375/0.4721, allocations: 106.5 MB / 0.6136 GB, free: 4.574 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002301/0.4724, allocations: 67.97 kB / 0.6136 GB, free: 4.508 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1368/0.6092, allocations: 50.07 MB / 0.6625 GB, free: 2.273 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.6092, allocations: 0 / 0.6625 GB, free: 2.273 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001026/0.6093, allocations: 47.98 kB / 0.6626 GB, free: 2.227 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.006708/0.6161, allocations: 2.526 MB / 0.6651 GB, free: 15.64 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.6161, allocations: 12.03 kB / 0.6651 GB, free: 15.62 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001129/0.6173, allocations: 296.9 kB / 0.6653 GB, free: 15.33 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002035/0.6193, allocations: 0.9862 MB / 0.6663 GB, free: 14.29 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007873/0.6201, allocations: 472 kB / 0.6668 GB, free: 13.78 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000388/0.6205, allocations: 243.6 kB / 0.667 GB, free: 13.54 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004907/0.6254, allocations: 2.581 MB / 0.6695 GB, free: 10.87 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.664e-05/0.6255, allocations: 31.7 kB / 0.6695 GB, free: 10.84 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002198/0.6257, allocations: 88 kB / 0.6696 GB, free: 10.75 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.939e-05/0.6258, allocations: 52 kB / 0.6697 GB, free: 10.7 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0055/0.6313, allocations: 2.673 MB / 0.6723 GB, free: 8.023 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01234/0.6437, allocations: 6.778 MB / 0.6789 GB, free: 1.145 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2821/0.9258, allocations: 2.498 MB / 0.6813 GB, free: 105.6 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003818/0.9262, allocations: 128.8 kB / 0.6815 GB, free: 105.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.313e-05/0.9263, allocations: 69.84 kB / 0.6815 GB, free: 105.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=280): time 4.939e-06/0.9263, allocations: 5.781 kB / 0.6815 GB, free: 105.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=338): time 0.0294/0.9557, allocations: 14.53 MB / 0.6957 GB, free: 100.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.621e-05/0.9558, allocations: 326.7 kB / 0.696 GB, free: 100.6 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001205/0.9571, allocations: 0.918 MB / 0.6969 GB, free: 100.4 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004194/0.9575, allocations: 99.62 kB / 0.697 GB, free: 100.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004545/0.958, allocations: 0.6731 MB / 0.6977 GB, free: 100.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008735/0.9588, allocations: 1.138 MB / 0.6988 GB, free: 99.53 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.959, allocations: 64.06 kB / 0.6989 GB, free: 99.53 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.9592, allocations: 433.9 kB / 0.6993 GB, free: 99.22 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002143/0.9613, allocations: 1.094 MB / 0.7003 GB, free: 99.21 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002236/0.9636, allocations: 1.51 MB / 0.7018 GB, free: 98.87 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002055/0.9656, allocations: 1.117 MB / 0.7029 GB, free: 98.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.837e-06/0.9657, allocations: 6.5 kB / 0.7029 GB, free: 98.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.00628/0.972, allocations: 3.495 MB / 0.7063 GB, free: 97.53 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.972, allocations: 9 kB / 0.7063 GB, free: 97.53 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.111e-05/0.9721, allocations: 9.25 kB / 0.7064 GB, free: 97.53 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002194/0.9743, allocations: 1.055 MB / 0.7074 GB, free: 97.24 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003002/0.9773, allocations: 0.754 MB / 0.7081 GB, free: 97.22 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008323/0.9856, allocations: 7.529 MB / 0.7155 GB, free: 91.42 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003102/0.9887, allocations: 298.6 kB / 0.7158 GB, free: 91.36 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007599/0.9895, allocations: 124.1 kB / 0.7159 GB, free: 91.34 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.002193/0.9917, allocations: 481.4 kB / 0.7163 GB, free: 91 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001559/0.9933, allocations: 219.6 kB / 0.7165 GB, free: 90.89 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005847/0.9992, allocations: 2.502 MB / 0.719 GB, free: 89.88 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.583e-05/0.9992, allocations: 37.67 kB / 0.719 GB, free: 89.88 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.188e-05/0.9993, allocations: 2.812 kB / 0.719 GB, free: 89.88 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.162e-05/0.9993, allocations: 19.05 kB / 0.719 GB, free: 89.88 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.01637/1.016, allocations: 7.777 MB / 0.7266 GB, free: 86.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.636e-05/1.016, allocations: 7.781 kB / 0.7266 GB, free: 86.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003274/1.019, allocations: 0.7416 MB / 0.7274 GB, free: 86.32 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002314/1.021, allocations: 1.034 MB / 0.7284 GB, free: 86.01 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004375/1.022, allocations: 107 kB / 0.7285 GB, free: 85.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009701/1.032, allocations: 10.18 MB / 0.7384 GB, free: 77.39 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.42e-05/1.032, allocations: 19.44 kB / 0.7384 GB, free: 77.38 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01242/1.044, allocations: 6.521 MB / 0.7448 GB, free: 73.81 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001667/1.046, allocations: 0.5403 MB / 0.7453 GB, free: 73.48 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004357/1.046, allocations: 84.2 kB / 0.7454 GB, free: 73.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002203/1.048, allocations: 297.6 kB / 0.7457 GB, free: 73.37 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001045/1.05, allocations: 457.8 kB / 0.7461 GB, free: 73.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000245/1.05, allocations: 124.3 kB / 0.7463 GB, free: 73.26 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001128/1.051, allocations: 0.7232 MB / 0.747 GB, free: 72.97 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.051, allocations: 0 / 0.747 GB, free: 72.97 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00312/1.054, allocations: 0.7304 MB / 0.7477 GB, free: 72.87 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.0005352/1.055, allocations: 276.4 kB / 0.7479 GB, free: 72.68 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007304/1.062, allocations: 3.512 MB / 0.7514 GB, free: 71.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.226e-05/1.062, allocations: 7.578 kB / 0.7514 GB, free: 71.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005994/1.068, allocations: 2.926 MB / 0.7542 GB, free: 69.92 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002427/1.07, allocations: 308.8 kB / 0.7545 GB, free: 69.81 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01209/1.083, allocations: 7.578 MB / 0.7619 GB, free: 65.36 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001187/1.084, allocations: 1.59 MB / 0.7635 GB, free: 64.59 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001681/1.085, allocations: 310.7 kB / 0.7638 GB, free: 64.54 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006218/1.086, allocations: 194.3 kB / 0.764 GB, free: 64.51 MB / 490.7 MB Notification: Performance of SimCode: time 9.62e-07/1.086, allocations: 0 / 0.764 GB, free: 64.51 MB / 490.7 MB Notification: Performance of Templates: time 0.05513/1.141, allocations: 36.19 MB / 0.7993 GB, free: 40.28 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/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