Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 115.3 kB / 17.29 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 197.3 kB / 18.2 MB, free: 5.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 49.7 kB / 300.8 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1145, allocations: 49.44 MB / 350.2 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004028/0.1186, allocations: 2.777 MB / 353 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002077/0.1207, allocations: 1.077 MB / 354.1 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001819/0.1209, allocations: 8 kB / 354.1 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002452/0.1212, allocations: 59.61 kB / 354.1 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005449/0.1218, allocations: 169 kB / 354.3 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004144/0.1222, allocations: 223.7 kB / 354.5 MB, free: 452 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005885/0.1228, allocations: 0.6391 MB / 355.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002392/0.123, allocations: 127.4 kB / 355.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003841/0.1234, allocations: 291.1 kB / 355.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004004/0.1238, allocations: 342.8 kB / 355.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.223e-05/0.1239, allocations: 52 kB / 356 MB, free: 15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002396/0.1242, allocations: 131.9 kB / 356.1 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001669/0.1243, allocations: 147.6 kB / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002372/0.1246, allocations: 254.8 kB / 356.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005116/0.1251, allocations: 487.2 kB / 357 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.83e-06/0.1251, allocations: 4 kB / 357 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1251, allocations: 0 / 357 MB, free: 14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.1251, allocations: 4 kB / 357 MB, free: 13.99 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001645/0.1268, allocations: 0.7992 MB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.1268, allocations: 11.89 kB / 357.8 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003522/0.1272, allocations: 64.36 kB / 357.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005076/0.1277, allocations: 350.5 kB / 358.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001291/0.1279, allocations: 96.95 kB / 358.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.282e-05/0.128, allocations: 44.36 kB / 358.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.129, allocations: 0.5606 MB / 358.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.237e-05/0.1291, allocations: 11.91 kB / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.442e-05/0.1291, allocations: 16 kB / 358.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.1291, allocations: 11.98 kB / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/0.1305, allocations: 0.6324 MB / 359.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002368/0.1329, allocations: 1.287 MB / 360.8 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.134, allocations: 0.552 MB / 361.4 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006073/0.1346, allocations: 322.4 kB / 361.7 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.862e-05/0.1347, allocations: 16.5 kB / 361.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.1347, allocations: 35.12 kB / 361.8 MB, free: 9.008 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.805e-06/0.1347, allocations: 4 kB / 361.8 MB, free: 9.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=69): time 0.00676/0.1415, allocations: 2.867 MB / 364.6 MB, free: 6.016 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.25e-05/0.1416, allocations: 93.61 kB / 364.7 MB, free: 5.906 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004003/0.142, allocations: 331 kB / 365 MB, free: 5.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.111e-05/0.1421, allocations: 41.7 kB / 365.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.1422, allocations: 161.6 kB / 365.2 MB, free: 5.363 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001948/0.1424, allocations: 224.8 kB / 365.5 MB, free: 5.141 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000215/0.1426, allocations: 122.2 kB / 365.6 MB, free: 5.016 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1428, allocations: 346.8 kB / 365.9 MB, free: 4.668 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005753/0.1434, allocations: 289.2 kB / 366.2 MB, free: 4.387 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000648/0.144, allocations: 358.4 kB / 366.6 MB, free: 4.023 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.1451, allocations: 0.5266 MB / 367.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1451, allocations: 0 / 367.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001727/0.1468, allocations: 0.8811 MB / 368 MB, free: 2.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.1469, allocations: 11.94 kB / 368 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/0.1469, allocations: 0 / 368 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.148, allocations: 471.3 kB / 368.4 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003803/0.1484, allocations: 87.81 kB / 368.5 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001283/0.1497, allocations: 1.075 MB / 369.6 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004712/0.1501, allocations: 55.92 kB / 369.6 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.07e-05/0.1502, allocations: 27.98 kB / 369.7 MB, free: 0.8555 MB / 302.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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002523/0.1505, allocations: 189.5 kB / 369.9 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.1506, allocations: 47.58 kB / 369.9 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001534/0.1508, allocations: 63.78 kB / 370 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.1508, allocations: 11.98 kB / 370 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.1508, allocations: 0 / 370 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.1508, allocations: 0 / 370 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1886/0.3394, allocations: 1.753 MB / 371.7 MB, free: 26.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.3395, allocations: 1.578 kB / 371.7 MB, free: 26.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004303/0.3399, allocations: 80.02 kB / 371.8 MB, free: 26.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001061/0.341, allocations: 448.7 kB / 372.3 MB, free: 26.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.774e-05/0.341, allocations: 24.62 kB / 372.3 MB, free: 26.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/0.3423, allocations: 1.04 MB / 373.3 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3423, allocations: 1.031 kB / 373.3 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002543/0.3449, allocations: 1.31 MB / 374.6 MB, free: 24.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002492/0.3451, allocations: 175.2 kB / 374.8 MB, free: 24.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.575e-05/0.3452, allocations: 19.66 kB / 374.8 MB, free: 24.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004441/0.3457, allocations: 52.72 kB / 374.9 MB, free: 24.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002333/0.3459, allocations: 84.25 kB / 375 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.328e-05/0.346, allocations: 30.89 kB / 375 MB, free: 24.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002965/0.3463, allocations: 246.8 kB / 375.2 MB, free: 24.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3463, allocations: 0 / 375.2 MB, free: 24.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005239/0.3468, allocations: 147.7 kB / 375.4 MB, free: 24.62 MB / 302.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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002468/0.3471, allocations: 144 kB / 375.5 MB, free: 24.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001771/0.3488, allocations: 0.7489 MB / 376.3 MB, free: 24.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3489, allocations: 0 / 376.3 MB, free: 24.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008484/0.3497, allocations: 390.2 kB / 376.6 MB, free: 24.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005225/0.3503, allocations: 54.94 kB / 376.7 MB, free: 24.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002558/0.3528, allocations: 1.317 MB / 378 MB, free: 23.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000274/0.3531, allocations: 0.8195 MB / 378.8 MB, free: 22.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.3533, allocations: 44.19 kB / 378.9 MB, free: 22.74 MB / 302.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3533, allocations: 0 / 378.9 MB, free: 22.74 MB / 302.1 MB Notification: Performance of Templates: time 0.01184/0.3651, allocations: 7.202 MB / 386.1 MB, free: 20.54 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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