Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001797/0.001797, allocations: 111.6 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002354/0.002354, allocations: 212.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.675/1.675, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 59.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4222/0.4241, allocations: 50.55 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.006898/0.4311, allocations: 2.851 MB / 412.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003697/0.4348, allocations: 1.271 MB / 414 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004413/0.4353, allocations: 11.94 kB / 414 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005843/0.436, allocations: 91.27 kB / 414.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001167/0.4372, allocations: 210 kB / 414.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.4384, allocations: 255.5 kB / 414.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001391/0.4398, allocations: 0.7133 MB / 415.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003979/0.4402, allocations: 127.3 kB / 415.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001013/0.4412, allocations: 331 kB / 415.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009894/0.4422, allocations: 370.8 kB / 416.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002554/0.4425, allocations: 60 kB / 416.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006375/0.4432, allocations: 155.9 kB / 416.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004167/0.4436, allocations: 159.6 kB / 416.5 MB, free: 11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000663/0.4443, allocations: 274.7 kB / 416.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001529/0.4458, allocations: 0.7139 MB / 417.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.818e-06/0.4459, allocations: 4 kB / 417.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4459, allocations: 0 / 417.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.588e-05/0.4459, allocations: 0 / 417.5 MB, free: 10.02 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002967/0.4489, allocations: 0.8381 MB / 418.3 MB, free: 9.133 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.449, allocations: 12.03 kB / 418.3 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007724/0.4497, allocations: 76.33 kB / 418.4 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.4508, allocations: 374.3 kB / 418.8 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002172/0.4511, allocations: 96.95 kB / 418.9 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001688/0.4513, allocations: 40.38 kB / 418.9 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001922/0.4532, allocations: 0.5606 MB / 419.5 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.464e-05/0.4533, allocations: 7.906 kB / 419.5 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.842e-05/0.4534, allocations: 16 kB / 419.5 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.4534, allocations: 12 kB / 419.5 MB, free: 7.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002323/0.4557, allocations: 0.6167 MB / 420.1 MB, free: 7.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004313/0.4601, allocations: 1.302 MB / 421.4 MB, free: 5.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002048/0.4622, allocations: 0.5247 MB / 421.9 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001064/0.4633, allocations: 302.4 kB / 422.2 MB, free: 5.078 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.829e-05/0.4634, allocations: 16.48 kB / 422.2 MB, free: 5.062 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.096e-05/0.4634, allocations: 39.12 kB / 422.3 MB, free: 5.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 4.117e-06/0.4635, allocations: 0 / 422.3 MB, free: 5.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=70): time 0.01177/0.4752, allocations: 2.73 MB / 425 MB, free: 2.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.942e-05/0.4754, allocations: 89.67 kB / 425.1 MB, free: 2.055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008097/0.4762, allocations: 351.2 kB / 425.4 MB, free: 1.703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001062/0.4763, allocations: 41.7 kB / 425.5 MB, free: 1.656 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.4765, allocations: 173.6 kB / 425.7 MB, free: 1.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003304/0.4769, allocations: 228.7 kB / 425.9 MB, free: 1.254 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003748/0.4773, allocations: 126.2 kB / 426 MB, free: 1.125 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002186/0.4775, allocations: 350.8 kB / 426.3 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001072/0.4786, allocations: 273.1 kB / 426.6 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/0.4797, allocations: 330.5 kB / 426.9 MB, free: 176 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001868/0.4816, allocations: 491.2 kB / 427.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.4816, allocations: 3.938 kB / 427.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.003177/0.4848, allocations: 0.8489 MB / 428.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/0.4849, allocations: 4 kB / 428.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.4849, allocations: 0 / 428.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001821/0.4867, allocations: 449.3 kB / 428.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006908/0.4875, allocations: 83.88 kB / 428.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002271/0.4898, allocations: 1.025 MB / 429.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009068/0.4907, allocations: 55.92 kB / 429.9 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/0.4909, allocations: 28.06 kB / 429.9 MB, free: 13.16 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0005224/0.4914, allocations: 189.1 kB / 430.1 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002761/0.4917, allocations: 47.44 kB / 430.1 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002446/0.492, allocations: 67.86 kB / 430.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.492, allocations: 8 kB / 430.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.492, allocations: 0 / 430.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.399e-05/0.492, allocations: 3.984 kB / 430.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00584/0.4979, allocations: 1.706 MB / 431.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.355e-06/0.4979, allocations: 0 / 431.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000656/0.4986, allocations: 83.91 kB / 432 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001678/0.5003, allocations: 416.5 kB / 432.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001083/0.5004, allocations: 31.91 kB / 432.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002068/0.5025, allocations: 0.9706 MB / 433.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/0.5026, allocations: 8.031 kB / 433.4 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004457/0.507, allocations: 1.216 MB / 434.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005229/0.5076, allocations: 192.5 kB / 434.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001933/0.5078, allocations: 16 kB / 434.8 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008355/0.5087, allocations: 55.92 kB / 434.9 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003503/0.509, allocations: 92.42 kB / 435 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/0.5092, allocations: 27.97 kB / 435 MB, free: 7.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006059/0.5098, allocations: 261.9 kB / 435.3 MB, free: 7.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5098, allocations: 0 / 435.3 MB, free: 7.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001015/0.5108, allocations: 140 kB / 435.4 MB, free: 7.512 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001592/0.5124, allocations: 392.5 kB / 435.8 MB, free: 7.234 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003002/0.5155, allocations: 0.669 MB / 436.4 MB, free: 6.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/0.5155, allocations: 64 / 436.4 MB, free: 6.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001511/0.517, allocations: 380 kB / 436.8 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.5181, allocations: 78.8 kB / 436.9 MB, free: 6.125 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004802/0.5229, allocations: 1.175 MB / 438.1 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006863/0.5237, allocations: 0.825 MB / 438.9 MB, free: 4.066 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004372/0.5241, allocations: 55.39 kB / 438.9 MB, free: 4.012 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5242, allocations: 0 / 438.9 MB, free: 4.012 MB / 350.1 MB Notification: Performance of Templates: time 0.02059/0.5448, allocations: 8.124 MB / 447.1 MB, free: 11.89 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time