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.001694/0.001694, allocations: 108.5 kB / 17.16 MB, free: 6.328 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.002011/0.002012, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 47.55 kB / 300.6 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09894/0.1002, allocations: 49.45 MB / 350.1 MB, free: 4.875 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004446/0.1047, allocations: 2.761 MB / 352.8 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.1069, allocations: 1.1 MB / 353.9 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002932/0.1072, allocations: 4 kB / 353.9 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002889/0.1075, allocations: 63.59 kB / 354 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000669/0.1082, allocations: 159.1 kB / 354.1 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005175/0.1087, allocations: 223.7 kB / 354.4 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007351/0.1095, allocations: 0.6118 MB / 355 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002372/0.1097, allocations: 107.9 kB / 355.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004731/0.1102, allocations: 271 kB / 355.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004786/0.1107, allocations: 326.9 kB / 355.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001186/0.1108, allocations: 28 kB / 355.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002829/0.1111, allocations: 111.9 kB / 355.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001691/0.1113, allocations: 127.5 kB / 355.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000263/0.1116, allocations: 230.8 kB / 356.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004848/0.1121, allocations: 475.2 kB / 356.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1121, allocations: 0 / 356.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1121, allocations: 0 / 356.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.111e-05/0.1121, allocations: 0 / 356.6 MB, free: 14.28 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.001741/0.1139, allocations: 0.8032 MB / 357.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1139, allocations: 8.031 kB / 357.4 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003784/0.1143, allocations: 68.34 kB / 357.5 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005234/0.1148, allocations: 358.5 kB / 357.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/0.115, allocations: 92.95 kB / 357.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.665e-05/0.1151, allocations: 40.38 kB / 358 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/0.1162, allocations: 0.5683 MB / 358.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.571e-05/0.1162, allocations: 3.906 kB / 358.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.108e-05/0.1163, allocations: 20 kB / 358.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.1163, allocations: 8 kB / 358.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001415/0.1178, allocations: 0.6363 MB / 359.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002664/0.1204, allocations: 1.291 MB / 360.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001236/0.1217, allocations: 0.5403 MB / 361 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006174/0.1223, allocations: 318.4 kB / 361.3 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.328e-05/0.1224, allocations: 12.5 kB / 361.4 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.1224, allocations: 43.12 kB / 361.4 MB, free: 9.297 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.445e-06/0.1224, allocations: 0 / 361.4 MB, free: 9.297 MB / 302.1 MB Notification: Performance of matching and sorting (n=69): time 0.007298/0.1297, allocations: 2.868 MB / 364.3 MB, free: 6.309 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.778e-05/0.1299, allocations: 89.61 kB / 364.3 MB, free: 6.203 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005292/0.1304, allocations: 334.9 kB / 364.7 MB, free: 5.863 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.127e-05/0.1305, allocations: 41.7 kB / 364.7 MB, free: 5.816 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.1306, allocations: 165.6 kB / 364.9 MB, free: 5.652 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002747/0.1309, allocations: 224.8 kB / 365.1 MB, free: 5.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002303/0.1311, allocations: 118.2 kB / 365.2 MB, free: 5.309 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1313, allocations: 346.8 kB / 365.6 MB, free: 4.961 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006205/0.1319, allocations: 293.2 kB / 365.8 MB, free: 4.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000665/0.1326, allocations: 358.4 kB / 366.2 MB, free: 4.312 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.1337, allocations: 0.5187 MB / 366.7 MB, free: 3.785 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1337, allocations: 0 / 366.7 MB, free: 3.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001934/0.1357, allocations: 0.8812 MB / 367.6 MB, free: 2.895 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.1357, allocations: 11.88 kB / 367.6 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.1357, allocations: 0 / 367.6 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001189/0.1369, allocations: 479.2 kB / 368.1 MB, free: 2.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003834/0.1373, allocations: 79.89 kB / 368.1 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/0.1388, allocations: 1.083 MB / 369.2 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005033/0.1393, allocations: 55.97 kB / 369.3 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.309e-05/0.1394, allocations: 23.98 kB / 369.3 MB, free: 1.148 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.000284/0.1397, allocations: 193.6 kB / 369.5 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.1398, allocations: 39.53 kB / 369.5 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001699/0.14, allocations: 63.77 kB / 369.6 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.14, allocations: 11.94 kB / 369.6 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.639e-06/0.1401, allocations: 0 / 369.6 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.1401, allocations: 3.984 kB / 369.6 MB, free: 0.832 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1731/0.3132, allocations: 1.758 MB / 371.4 MB, free: 26.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.3132, allocations: 1.047 kB / 371.4 MB, free: 26.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003945/0.3136, allocations: 80.31 kB / 371.5 MB, free: 26.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001039/0.3147, allocations: 444 kB / 371.9 MB, free: 26.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.591e-05/0.3147, allocations: 25.14 kB / 371.9 MB, free: 26.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001156/0.3159, allocations: 1.05 MB / 373 MB, free: 25.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3159, allocations: 1.25 kB / 373 MB, free: 25.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.3184, allocations: 1.304 MB / 374.3 MB, free: 25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002375/0.3187, allocations: 175.8 kB / 374.4 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.427e-05/0.3188, allocations: 20.81 kB / 374.5 MB, free: 24.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004198/0.3192, allocations: 49.19 kB / 374.5 MB, free: 24.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002167/0.3194, allocations: 90.77 kB / 374.6 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.289e-05/0.3195, allocations: 23.61 kB / 374.6 MB, free: 24.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002605/0.3197, allocations: 247.7 kB / 374.9 MB, free: 24.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3198, allocations: 0 / 374.9 MB, free: 24.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000504/0.3203, allocations: 146.1 kB / 375 MB, free: 24.71 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.0002693/0.3205, allocations: 152.6 kB / 375.1 MB, free: 24.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001593/0.3221, allocations: 0.7146 MB / 375.9 MB, free: 24.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.3222, allocations: 0 / 375.9 MB, free: 24.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008001/0.323, allocations: 384.8 kB / 376.2 MB, free: 24.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004968/0.3235, allocations: 55.28 kB / 376.3 MB, free: 24.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002463/0.3259, allocations: 1.309 MB / 377.6 MB, free: 23.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.3262, allocations: 0.8199 MB / 378.4 MB, free: 22.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.3264, allocations: 43.28 kB / 378.5 MB, free: 22.82 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3264, allocations: 0 / 378.5 MB, free: 22.82 MB / 302.1 MB Notification: Performance of Templates: time 0.01123/0.3376, allocations: 7.189 MB / 385.7 MB, free: 20.66 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