Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.AllComponents.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009193/0.0009193, allocations: 193.9 kB / 16.78 MB, free: 4.918 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 226.5 MB / 244.1 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00077/0.0007701, allocations: 103.1 kB / 296.1 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2993/0.2993, allocations: 44.83 MB / 393 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002649/0.0002649, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3211, allocations: 62.95 MB / 0.5165 GB, free: 37.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1244/0.4456, allocations: 110.2 MB / 0.624 GB, free: 11.2 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001608/0.4458, allocations: 71.97 kB / 0.6241 GB, free: 11.13 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4131/0.8589, allocations: 69.38 MB / 0.6919 GB, free: 111.2 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.859, allocations: 0 / 0.6919 GB, free: 111.2 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001018/0.8591, allocations: 50.78 kB / 0.6919 GB, free: 111.2 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 586 * Number of variables: 586 Notification: Performance of Generate backend data structure: time 0.006651/0.8657, allocations: 2.718 MB / 0.6946 GB, free: 110.1 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.8658, allocations: 8.375 kB / 0.6946 GB, free: 110.1 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002029/0.8678, allocations: 447.7 kB / 0.695 GB, free: 109.9 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002252/0.8701, allocations: 1.137 MB / 0.6961 GB, free: 109.5 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006976/0.8708, allocations: 480.9 kB / 0.6966 GB, free: 109.3 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005256/0.8714, allocations: 260.2 kB / 0.6968 GB, free: 109.3 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005876/0.8772, allocations: 2.795 MB / 0.6995 GB, free: 109 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001219/0.8774, allocations: 38.11 kB / 0.6996 GB, free: 109 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002335/0.8776, allocations: 93.44 kB / 0.6997 GB, free: 109 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.666e-05/0.8777, allocations: 55.78 kB / 0.6997 GB, free: 109 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006259/0.8839, allocations: 2.853 MB / 0.7025 GB, free: 108.9 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01436/0.8983, allocations: 7.598 MB / 0.7099 GB, free: 105.5 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005146/0.9035, allocations: 2.673 MB / 0.7125 GB, free: 104.2 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00316/0.9067, allocations: 1.488 MB / 0.714 GB, free: 103.7 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002634/0.907, allocations: 129.6 kB / 0.7141 GB, free: 103.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.003e-05/0.907, allocations: 75.25 kB / 0.7142 GB, free: 103.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=288): time 4.749e-06/0.9071, allocations: 0 / 0.7142 GB, free: 103.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=347): time 0.0299/0.937, allocations: 15.57 MB / 0.7294 GB, free: 95.01 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.467e-05/0.9371, allocations: 357.5 kB / 0.7297 GB, free: 94.62 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001781/0.9389, allocations: 1.223 MB / 0.7309 GB, free: 94.14 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005245/0.9394, allocations: 104.3 kB / 0.731 GB, free: 94.05 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005039/0.9399, allocations: 0.7473 MB / 0.7318 GB, free: 93.47 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001121/0.9411, allocations: 1.168 MB / 0.7329 GB, free: 92.57 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004289/0.9415, allocations: 69.8 kB / 0.733 GB, free: 92.52 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.9417, allocations: 436.5 kB / 0.7334 GB, free: 92.15 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002692/0.9444, allocations: 1.168 MB / 0.7345 GB, free: 91.75 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002989/0.9474, allocations: 1.637 MB / 0.7361 GB, free: 90.89 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005058/0.9525, allocations: 2.634 MB / 0.7387 GB, free: 89.55 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.22e-05/0.9525, allocations: 7.75 kB / 0.7387 GB, free: 89.55 MB / 490.7 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.00797/0.9605, allocations: 3.683 MB / 0.7423 GB, free: 88.13 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/0.9606, allocations: 11.88 kB / 0.7423 GB, free: 88.13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.335e-05/0.9606, allocations: 7.906 kB / 0.7423 GB, free: 88.13 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002245/0.9628, allocations: 1.012 MB / 0.7433 GB, free: 87.81 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002923/0.9658, allocations: 0.8237 MB / 0.7441 GB, free: 87.74 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008577/0.9744, allocations: 7.525 MB / 0.7515 GB, free: 81.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002744/0.9772, allocations: 329.5 kB / 0.7518 GB, free: 81.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006118/0.9778, allocations: 121 kB / 0.7519 GB, free: 81.77 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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,bearingFriction.free,$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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (347): * Single equations (assignments): 342 * 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: 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 7,1 9,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.002024/0.9798, allocations: 498.4 kB / 0.7524 GB, free: 81.43 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001108/0.9809, allocations: 232.8 kB / 0.7526 GB, free: 81.31 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001503/0.9825, allocations: 0.6305 MB / 0.7532 GB, free: 80.95 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.791e-05/0.9825, allocations: 38.55 kB / 0.7532 GB, free: 80.95 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.488e-05/0.9826, allocations: 3.531 kB / 0.7532 GB, free: 80.95 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.469e-05/0.9826, allocations: 25.34 kB / 0.7533 GB, free: 80.95 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.0171/0.9997, allocations: 8.266 MB / 0.7613 GB, free: 75.95 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.841e-05/0.9998, allocations: 12.03 kB / 0.7613 GB, free: 75.94 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003199/1.003, allocations: 0.7984 MB / 0.7621 GB, free: 75.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002481/1.006, allocations: 0.9806 MB / 0.7631 GB, free: 74.45 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000509/1.006, allocations: 104.5 kB / 0.7632 GB, free: 74.37 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008739/1.015, allocations: 10.18 MB / 0.7731 GB, free: 64.13 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/1.015, allocations: 20 kB / 0.7731 GB, free: 64.11 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01229/1.027, allocations: 6.316 MB / 0.7793 GB, free: 58.21 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001415/1.029, allocations: 0.5895 MB / 0.7799 GB, free: 57.72 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006624/1.029, allocations: 93.42 kB / 0.78 GB, free: 57.63 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002524/1.032, allocations: 328.1 kB / 0.7803 GB, free: 57.38 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009361/1.033, allocations: 470.5 kB / 0.7807 GB, free: 57.12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002869/1.033, allocations: 124.4 kB / 0.7808 GB, free: 57.03 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001376/1.034, allocations: 0.8158 MB / 0.7816 GB, free: 56.34 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.6e-07/1.034, allocations: 0 / 0.7816 GB, free: 56.34 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003378/1.038, allocations: 0.7812 MB / 0.7824 GB, free: 55.56 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 32 (speed2.phi,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 (276): * Single equations (assignments): 269 * 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 6,1 8,2 23,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.001147/1.039, allocations: 0.5107 MB / 0.7829 GB, free: 55.21 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007144/1.046, allocations: 3.608 MB / 0.7864 GB, free: 51.98 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/1.046, allocations: 0 / 0.7864 GB, free: 51.98 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005541/1.052, allocations: 2.92 MB / 0.7893 GB, free: 49.29 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005153/1.057, allocations: 401.7 kB / 0.7897 GB, free: 48.96 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01229/1.069, allocations: 8.059 MB / 0.7975 GB, free: 41.52 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001392/1.071, allocations: 1.605 MB / 0.7991 GB, free: 39.88 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001383/1.072, allocations: 231.2 kB / 0.7993 GB, free: 39.66 MB / 490.7 MB Notification: Performance of SimCode: time 1.002e-06/1.072, allocations: 0 / 0.7993 GB, free: 39.66 MB / 490.7 MB Notification: Performance of Templates: time 0.08175/1.154, allocations: 81.42 MB / 0.8788 GB, free: 6.195 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.AllComponents --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.AllComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.Rotational.AllComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches