Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_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_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001594/0.001594, allocations: 197.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 226.5 MB / 245.4 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009259/0.0009259, allocations: 98.36 kB / 297.5 MB, free: 6.867 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4102/0.4102, allocations: 44.82 MB / 394.3 MB, free: 35.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003416/0.0003418, allocations: 8 kB / 467.9 MB, free: 11.98 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4134/0.4138, allocations: 62.96 MB / 0.5184 GB, free: 37.28 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1513/0.5651, allocations: 110.2 MB / 0.626 GB, free: 11.06 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002105/0.5654, allocations: 75.97 kB / 0.6261 GB, free: 10.99 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4359/1.001, allocations: 69.36 MB / 0.6938 GB, free: 111.5 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.804e-06/1.001, allocations: 5.781 kB / 0.6938 GB, free: 111.5 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001523/1.001, allocations: 53.02 kB / 0.6938 GB, free: 111.5 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.007964/1.009, allocations: 2.71 MB / 0.6965 GB, free: 110.4 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/1.01, allocations: 8.594 kB / 0.6965 GB, free: 110.4 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002463/1.012, allocations: 456.6 kB / 0.6969 GB, free: 110.2 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003105/1.015, allocations: 1.141 MB / 0.6981 GB, free: 109.8 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001408/1.017, allocations: 479.2 kB / 0.6985 GB, free: 109.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001114/1.018, allocations: 262.6 kB / 0.6988 GB, free: 109.5 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01021/1.028, allocations: 2.792 MB / 0.7015 GB, free: 109.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001909/1.028, allocations: 40.67 kB / 0.7015 GB, free: 109.2 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003586/1.029, allocations: 91.03 kB / 0.7016 GB, free: 109.2 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.483e-05/1.029, allocations: 55.31 kB / 0.7017 GB, free: 109.2 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01334/1.042, allocations: 2.847 MB / 0.7044 GB, free: 109.2 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03022/1.072, allocations: 7.593 MB / 0.7119 GB, free: 105.7 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009607/1.082, allocations: 2.689 MB / 0.7145 GB, free: 104.5 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006222/1.088, allocations: 1.485 MB / 0.7159 GB, free: 103.9 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004487/1.089, allocations: 128.8 kB / 0.7161 GB, free: 103.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.217e-05/1.089, allocations: 73.19 kB / 0.7161 GB, free: 103.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=288): time 1.069e-05/1.089, allocations: 0 / 0.7161 GB, free: 103.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=347): time 0.05196/1.141, allocations: 15.58 MB / 0.7313 GB, free: 95.21 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/1.141, allocations: 356.6 kB / 0.7317 GB, free: 94.83 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002587/1.144, allocations: 1.218 MB / 0.7329 GB, free: 94.36 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001038/1.145, allocations: 95.14 kB / 0.733 GB, free: 94.27 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000684/1.145, allocations: 0.759 MB / 0.7337 GB, free: 93.69 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001362/1.147, allocations: 1.157 MB / 0.7348 GB, free: 92.79 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002482/1.147, allocations: 72.28 kB / 0.7349 GB, free: 92.73 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001834/1.147, allocations: 438.7 kB / 0.7353 GB, free: 92.36 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003493/1.151, allocations: 1.174 MB / 0.7365 GB, free: 91.96 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004395/1.155, allocations: 1.636 MB / 0.7381 GB, free: 91.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008586/1.164, allocations: 2.63 MB / 0.7406 GB, free: 89.77 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.256e-05/1.164, allocations: 2.906 kB / 0.7406 GB, free: 89.77 MB / 490.7 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.01212/1.176, allocations: 3.695 MB / 0.7442 GB, free: 88.34 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.864e-05/1.176, allocations: 6.688 kB / 0.7443 GB, free: 88.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.543e-05/1.176, allocations: 9.812 kB / 0.7443 GB, free: 88.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003952/1.18, allocations: 0.9995 MB / 0.7452 GB, free: 88.03 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005064/1.185, allocations: 0.8212 MB / 0.746 GB, free: 87.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01347/1.199, allocations: 7.535 MB / 0.7534 GB, free: 82.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004862/1.203, allocations: 321.9 kB / 0.7537 GB, free: 82.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007181/1.204, allocations: 132.2 kB / 0.7538 GB, free: 81.98 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.001915/1.206, allocations: 497.2 kB / 0.7543 GB, free: 81.64 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001061/1.207, allocations: 232 kB / 0.7545 GB, free: 81.52 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00179/1.209, allocations: 0.6194 MB / 0.7551 GB, free: 81.17 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.006e-05/1.209, allocations: 33.5 kB / 0.7552 GB, free: 81.17 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.242e-05/1.209, allocations: 11.62 kB / 0.7552 GB, free: 81.17 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-05/1.209, allocations: 23.27 kB / 0.7552 GB, free: 81.17 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.02879/1.238, allocations: 8.278 MB / 0.7633 GB, free: 75.95 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-05/1.238, allocations: 8 kB / 0.7633 GB, free: 75.94 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005979/1.244, allocations: 0.7928 MB / 0.7641 GB, free: 75.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004451/1.249, allocations: 0.9892 MB / 0.765 GB, free: 74.45 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001071/1.25, allocations: 100.2 kB / 0.7651 GB, free: 74.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01467/1.264, allocations: 10.19 MB / 0.7751 GB, free: 64.12 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.068e-05/1.265, allocations: 11.94 kB / 0.7751 GB, free: 64.11 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02042/1.285, allocations: 6.323 MB / 0.7813 GB, free: 58.21 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002412/1.287, allocations: 0.597 MB / 0.7818 GB, free: 57.71 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008265/1.288, allocations: 88 kB / 0.7819 GB, free: 57.63 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004317/1.293, allocations: 315.6 kB / 0.7822 GB, free: 57.39 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001483/1.294, allocations: 482.5 kB / 0.7827 GB, free: 57.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003747/1.295, allocations: 129 kB / 0.7828 GB, free: 57.02 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001933/1.296, allocations: 0.8112 MB / 0.7836 GB, free: 56.34 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.296, allocations: 0 / 0.7836 GB, free: 56.34 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005286/1.302, allocations: 0.78 MB / 0.7844 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.001851/1.304, allocations: 0.5082 MB / 0.7849 GB, free: 55.21 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01255/1.316, allocations: 3.607 MB / 0.7884 GB, free: 51.98 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.548e-05/1.316, allocations: 0 / 0.7884 GB, free: 51.98 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01107/1.327, allocations: 3.031 MB / 0.7913 GB, free: 49.18 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009084/1.337, allocations: 392.4 kB / 0.7917 GB, free: 48.86 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02322/1.36, allocations: 7.997 MB / 0.7995 GB, free: 41.35 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002273/1.362, allocations: 1.605 MB / 0.8011 GB, free: 39.71 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004074/1.366, allocations: 364.1 kB / 0.8014 GB, free: 39.36 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001428/1.368, allocations: 215.3 kB / 0.8016 GB, free: 39.15 MB / 490.7 MB Notification: Performance of SimCode: time 8.91e-07/1.368, allocations: 3.938 kB / 0.8016 GB, free: 39.15 MB / 490.7 MB Notification: Performance of Templates: time 0.09295/1.461, allocations: 38.96 MB / 0.8397 GB, free: 376 kB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_ModelicaTest.Rotational.AllComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches