Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009346/0.0009347, allocations: 172.2 kB / 16.76 MB, free: 5.059 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.461/1.461, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0007519/0.0007519, allocations: 85.42 kB / 271.3 MB, free: 8.25 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.3383/0.3383, allocations: 43.56 MB / 363.1 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003662/0.0003663, allocations: 12 kB / 432.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1195, allocations: 58.85 MB / 491.5 MB, free: 10.28 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3428/0.4624, allocations: 105.3 MB / 0.5828 GB, free: 12.68 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002471/0.4627, allocations: 65.89 kB / 0.5828 GB, free: 12.62 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1441/0.6068, allocations: 49.12 MB / 0.6308 GB, free: 11.41 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.6069, allocations: 0 / 0.6308 GB, free: 11.41 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000189/0.6071, allocations: 44 kB / 0.6308 GB, free: 11.36 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.008259/0.6153, allocations: 2.518 MB / 0.6333 GB, free: 8.781 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.6154, allocations: 8.031 kB / 0.6333 GB, free: 8.773 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00153/0.6169, allocations: 297.8 kB / 0.6336 GB, free: 8.48 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002757/0.6197, allocations: 1.026 MB / 0.6346 GB, free: 7.398 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009235/0.6207, allocations: 464.1 kB / 0.635 GB, free: 6.898 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008602/0.6215, allocations: 243.6 kB / 0.6353 GB, free: 6.66 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006865/0.6284, allocations: 2.604 MB / 0.6378 GB, free: 3.969 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001728/0.6286, allocations: 39.64 kB / 0.6378 GB, free: 3.93 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000383/0.629, allocations: 88 kB / 0.6379 GB, free: 3.844 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.044e-05/0.6291, allocations: 56 kB / 0.638 GB, free: 3.789 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006443/0.6355, allocations: 2.668 MB / 0.6406 GB, free: 1.121 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01376/0.6493, allocations: 6.768 MB / 0.6472 GB, free: 10.25 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004804/0.6541, allocations: 2.533 MB / 0.6497 GB, free: 7.594 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003014/0.6572, allocations: 1.435 MB / 0.6511 GB, free: 6.137 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002771/0.6575, allocations: 131.1 kB / 0.6512 GB, free: 5.984 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.956e-05/0.6576, allocations: 76.88 kB / 0.6513 GB, free: 5.902 MB / 474.7 MB Notification: Performance of pre-optimization done (n=280): time 5.821e-06/0.6576, allocations: 0 / 0.6513 GB, free: 5.902 MB / 474.7 MB Notification: Performance of matching and sorting (n=338): time 0.0327/0.6903, allocations: 14.56 MB / 0.6655 GB, free: 6.758 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001494/0.6905, allocations: 321.4 kB / 0.6658 GB, free: 6.375 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001678/0.6922, allocations: 1.057 MB / 0.6668 GB, free: 5.309 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005308/0.6927, allocations: 101.7 kB / 0.6669 GB, free: 5.203 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005699/0.6933, allocations: 0.6752 MB / 0.6676 GB, free: 4.52 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001304/0.6946, allocations: 1.136 MB / 0.6687 GB, free: 3.367 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004405/0.6951, allocations: 68 kB / 0.6688 GB, free: 3.301 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002617/0.6953, allocations: 428.6 kB / 0.6692 GB, free: 2.875 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002748/0.6981, allocations: 1.096 MB / 0.6702 GB, free: 1.777 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002973/0.7011, allocations: 1.518 MB / 0.6717 GB, free: 144 kB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2666/0.9677, allocations: 2.457 MB / 0.6741 GB, free: 111.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.059e-05/0.9677, allocations: 2.938 kB / 0.6741 GB, free: 111.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.008133/0.9759, allocations: 3.492 MB / 0.6775 GB, free: 111.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.023e-05/0.976, allocations: 10.14 kB / 0.6775 GB, free: 111.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.552e-05/0.976, allocations: 11.7 kB / 0.6776 GB, free: 111.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002546/0.9786, allocations: 1.048 MB / 0.6786 GB, free: 111.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003334/0.9819, allocations: 0.7521 MB / 0.6793 GB, free: 111.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008426/0.9904, allocations: 7.419 MB / 0.6866 GB, free: 107.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00288/0.9933, allocations: 294.8 kB / 0.6868 GB, free: 107.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004719/0.9938, allocations: 126.4 kB / 0.687 GB, free: 107.5 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.00143/0.9953, allocations: 471.3 kB / 0.6874 GB, free: 107.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008395/0.9961, allocations: 222.6 kB / 0.6876 GB, free: 107.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005081/1.001, allocations: 2.509 MB / 0.6901 GB, free: 107.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-05/1.001, allocations: 31.41 kB / 0.6901 GB, free: 107.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.318e-05/1.001, allocations: 10.08 kB / 0.6901 GB, free: 107.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.789e-05/1.001, allocations: 20.03 kB / 0.6901 GB, free: 107.2 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.01595/1.017, allocations: 7.813 MB / 0.6978 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.351e-05/1.017, allocations: 5.938 kB / 0.6978 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003048/1.02, allocations: 0.7373 MB / 0.6985 GB, free: 105.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002205/1.023, allocations: 1.04 MB / 0.6995 GB, free: 105.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004405/1.023, allocations: 102.1 kB / 0.6996 GB, free: 105.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009251/1.032, allocations: 10.07 MB / 0.7094 GB, free: 97.05 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.898e-06/1.032, allocations: 13.28 kB / 0.7094 GB, free: 97.04 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01352/1.046, allocations: 6.011 MB / 0.7153 GB, free: 94.14 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001703/1.048, allocations: 0.5296 MB / 0.7158 GB, free: 93.82 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008588/1.049, allocations: 89.64 kB / 0.7159 GB, free: 93.77 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0027/1.051, allocations: 293.9 kB / 0.7162 GB, free: 93.71 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001183/1.053, allocations: 456.8 kB / 0.7166 GB, free: 93.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005254/1.053, allocations: 130.2 kB / 0.7168 GB, free: 93.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001758/1.055, allocations: 0.7156 MB / 0.7174 GB, free: 93.32 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.71e-07/1.055, allocations: 0 / 0.7174 GB, free: 93.32 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004482/1.059, allocations: 0.7315 MB / 0.7182 GB, free: 93.21 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.0009482/1.06, allocations: 273.3 kB / 0.7184 GB, free: 93.03 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008869/1.069, allocations: 3.52 MB / 0.7219 GB, free: 91.64 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.565e-05/1.069, allocations: 1.219 kB / 0.7219 GB, free: 91.64 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007417/1.077, allocations: 2.919 MB / 0.7247 GB, free: 90.27 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005787/1.083, allocations: 367.1 kB / 0.7251 GB, free: 90.12 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01633/1.099, allocations: 7.601 MB / 0.7325 GB, free: 85.69 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002038/1.101, allocations: 1.548 MB / 0.734 GB, free: 84.91 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002436/1.103, allocations: 310 kB / 0.7343 GB, free: 84.86 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009871/1.104, allocations: 181 kB / 0.7345 GB, free: 84.84 MB / 490.7 MB Notification: Performance of SimCode: time 1.864e-06/1.104, allocations: 0 / 0.7345 GB, free: 84.84 MB / 490.7 MB Notification: Performance of Templates: time 0.06992/1.174, allocations: 36.45 MB / 0.7701 GB, free: 75.39 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.AllComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Rotational.AllComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches