Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_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_3.2.3_cpp_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001488/0.001488, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.031/2.031, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001154/0.001154, allocations: 90.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2919/0.2919, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.745e-05/3.775e-05, allocations: 4 kB / 425.3 MB, free: 23.36 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1207, allocations: 58.85 MB / 484.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5172/0.638, allocations: 105.1 MB / 0.5754 GB, free: 14.73 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/0.6383, allocations: 68.44 kB / 0.5755 GB, free: 14.7 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2398/0.8781, allocations: 49.26 MB / 0.6236 GB, free: 5.086 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.8782, allocations: 0 / 0.6236 GB, free: 5.086 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001922/0.8784, allocations: 52 kB / 0.6236 GB, free: 5.035 MB / 426.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.01154/0.8899, allocations: 2.346 MB / 0.6259 GB, free: 2.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.678e-05/0.89, allocations: 12.03 kB / 0.6259 GB, free: 2.758 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002282/0.8923, allocations: 296.8 kB / 0.6262 GB, free: 2.469 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003798/0.8962, allocations: 0.9901 MB / 0.6272 GB, free: 1.613 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001519/0.8978, allocations: 463 kB / 0.6276 GB, free: 1.191 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001277/0.8991, allocations: 242.8 kB / 0.6278 GB, free: 1.031 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009879/0.909, allocations: 2.346 MB / 0.6301 GB, free: 14.81 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002719/0.9093, allocations: 31.7 kB / 0.6302 GB, free: 14.78 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007285/0.9101, allocations: 88 kB / 0.6302 GB, free: 14.69 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.046e-05/0.9102, allocations: 59.94 kB / 0.6303 GB, free: 14.63 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007914/0.9181, allocations: 2.201 MB / 0.6325 GB, free: 12.43 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02447/0.9426, allocations: 6.755 MB / 0.639 GB, free: 5.574 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00694/0.9496, allocations: 2.249 MB / 0.6412 GB, free: 3.191 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004242/0.9539, allocations: 1.215 MB / 0.6424 GB, free: 1.961 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006283/0.9546, allocations: 131.1 kB / 0.6426 GB, free: 1.812 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.606e-05/0.9547, allocations: 68.38 kB / 0.6426 GB, free: 1.734 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 6.111e-06/0.9547, allocations: 0 / 0.6426 GB, free: 1.734 MB / 442.7 MB Notification: Performance of matching and sorting (n=338): time 0.03487/0.9896, allocations: 11.11 MB / 0.6535 GB, free: 6.129 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002212/0.9899, allocations: 329.5 kB / 0.6538 GB, free: 5.742 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002212/0.9921, allocations: 0.9081 MB / 0.6547 GB, free: 4.824 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008631/0.9931, allocations: 93.7 kB / 0.6548 GB, free: 4.727 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008271/0.9939, allocations: 0.6537 MB / 0.6554 GB, free: 4.066 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002036/0.996, allocations: 1.132 MB / 0.6565 GB, free: 2.918 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006511/0.9967, allocations: 64 kB / 0.6566 GB, free: 2.855 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003494/0.997, allocations: 441.4 kB / 0.657 GB, free: 2.414 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003866/1.001, allocations: 1.01 MB / 0.658 GB, free: 1.402 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004403/1.005, allocations: 1.424 MB / 0.6594 GB, free: 15.86 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00366/1.009, allocations: 1.014 MB / 0.6604 GB, free: 14.85 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.055e-05/1.009, allocations: 4 kB / 0.6604 GB, free: 14.85 MB / 474.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01148/1.021, allocations: 3.216 MB / 0.6635 GB, free: 11.61 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.965e-05/1.021, allocations: 8 kB / 0.6635 GB, free: 11.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.843e-05/1.021, allocations: 8.141 kB / 0.6635 GB, free: 11.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003988/1.025, allocations: 1.021 MB / 0.6645 GB, free: 10.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006147/1.031, allocations: 0.7451 MB / 0.6652 GB, free: 9.809 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0148/1.046, allocations: 7.395 MB / 0.6725 GB, free: 2.074 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004309/1.05, allocations: 307.8 kB / 0.6728 GB, free: 1.773 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008727/1.051, allocations: 128 kB / 0.6729 GB, free: 1.648 MB / 474.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 () * 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.0009121/1.052, allocations: 288.8 kB / 0.6732 GB, free: 1.359 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008517/1.053, allocations: 217.4 kB / 0.6734 GB, free: 1.145 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007276/1.06, allocations: 2.289 MB / 0.6756 GB, free: 14.82 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.034e-05/1.06, allocations: 32 kB / 0.6756 GB, free: 14.79 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.282e-05/1.06, allocations: 4.094 kB / 0.6756 GB, free: 14.79 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-05/1.06, allocations: 27.86 kB / 0.6757 GB, free: 14.76 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.02468/1.085, allocations: 7.34 MB / 0.6828 GB, free: 7.219 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-05/1.085, allocations: 12.06 kB / 0.6828 GB, free: 7.207 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006734/1.092, allocations: 0.7412 MB / 0.6836 GB, free: 6.465 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00417/1.096, allocations: 1.013 MB / 0.6846 GB, free: 5.43 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007968/1.097, allocations: 103.9 kB / 0.6847 GB, free: 5.328 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01636/1.113, allocations: 10.01 MB / 0.6944 GB, free: 10.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-05/1.113, allocations: 15.94 kB / 0.6944 GB, free: 10.68 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0162/1.13, allocations: 5.767 MB / 0.7001 GB, free: 4.586 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002139/1.132, allocations: 0.5256 MB / 0.7006 GB, free: 4.039 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007744/1.133, allocations: 84 kB / 0.7007 GB, free: 3.957 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004416/1.137, allocations: 295.8 kB / 0.7009 GB, free: 3.668 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001767/1.139, allocations: 461.1 kB / 0.7014 GB, free: 3.219 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004714/1.139, allocations: 127.9 kB / 0.7015 GB, free: 3.094 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001608/1.141, allocations: 0.7011 MB / 0.7022 GB, free: 2.387 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.51e-07/1.141, allocations: 0 / 0.7022 GB, free: 2.387 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004443/1.146, allocations: 0.7265 MB / 0.7029 GB, free: 1.66 MB / 0.4948 GB 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) * 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.001071/1.147, allocations: 282.8 kB / 0.7032 GB, free: 1.371 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.3483/1.495, allocations: 3.083 MB / 0.7062 GB, free: 143.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.198e-05/1.495, allocations: 1.406 kB / 0.7062 GB, free: 143.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01289/1.508, allocations: 2.545 MB / 0.7087 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005919/1.514, allocations: 317.7 kB / 0.709 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02838/1.542, allocations: 5.76 MB / 0.7146 GB, free: 141.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003654/1.546, allocations: 1.596 MB / 0.7162 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002626/1.549, allocations: 202.5 kB / 0.7164 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of SimCode: time 2.615e-06/1.549, allocations: 0 / 0.7164 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of Templates: time 0.1288/1.678, allocations: 71.19 MB / 0.7859 GB, free: 103.6 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Rotational.AllComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches