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.00128/0.00128, allocations: 104 kB / 17.59 MB, free: 5.559 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.001313/0.001313, allocations: 191.5 kB / 18.51 MB, free: 4.641 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.416/1.416, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 46.28 kB / 301.3 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1106, allocations: 49.46 MB / 350.7 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004672/0.1153, allocations: 2.712 MB / 353.4 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002329/0.1177, allocations: 1.096 MB / 354.5 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003613/0.118, allocations: 4 kB / 354.5 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003421/0.1184, allocations: 75.36 kB / 354.6 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008283/0.1193, allocations: 200.2 kB / 354.8 MB, free: 304 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006004/0.1199, allocations: 243.6 kB / 355 MB, free: 60 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008374/0.1207, allocations: 0.643 MB / 355.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000279/0.121, allocations: 115.4 kB / 355.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006608/0.1217, allocations: 303.1 kB / 356.1 MB, free: 15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005527/0.1223, allocations: 338.9 kB / 356.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000173/0.1224, allocations: 52 kB / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003553/0.1228, allocations: 131.9 kB / 356.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002304/0.123, allocations: 147.6 kB / 356.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003493/0.1234, allocations: 250.8 kB / 357 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000832/0.1242, allocations: 0.6349 MB / 357.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1243, allocations: 0 / 357.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1243, allocations: 0 / 357.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.856e-05/0.1243, allocations: 4 kB / 357.6 MB, free: 13.46 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.001767/0.1261, allocations: 0.7954 MB / 358.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.1261, allocations: 11.89 kB / 358.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003677/0.1265, allocations: 64.36 kB / 358.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005222/0.127, allocations: 366.4 kB / 358.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001514/0.1272, allocations: 96.95 kB / 359 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.439e-05/0.1273, allocations: 36.38 kB / 359 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.1284, allocations: 0.5645 MB / 359.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.1285, allocations: 7.906 kB / 359.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.484e-05/0.1286, allocations: 19.94 kB / 359.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.1286, allocations: 8 kB / 359.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.13, allocations: 0.6402 MB / 360.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002637/0.1326, allocations: 1.291 MB / 361.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.1339, allocations: 0.5422 MB / 362.1 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006355/0.1345, allocations: 326.3 kB / 362.4 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.793e-05/0.1346, allocations: 12.5 kB / 362.4 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.1346, allocations: 39.12 kB / 362.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 3.376e-06/0.1346, allocations: 0 / 362.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=69): time 0.007283/0.1419, allocations: 2.863 MB / 365.3 MB, free: 5.477 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.512e-05/0.142, allocations: 93.55 kB / 365.4 MB, free: 5.367 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004487/0.1425, allocations: 331 kB / 365.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.973e-05/0.1426, allocations: 41.7 kB / 365.8 MB, free: 4.984 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/0.1427, allocations: 165.6 kB / 365.9 MB, free: 4.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002038/0.1429, allocations: 228.7 kB / 366.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002304/0.1432, allocations: 122.2 kB / 366.3 MB, free: 4.469 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1433, allocations: 346.8 kB / 366.6 MB, free: 4.121 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006176/0.1439, allocations: 289.2 kB / 366.9 MB, free: 3.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006463/0.1446, allocations: 358.5 kB / 367.2 MB, free: 3.477 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.1457, allocations: 0.5187 MB / 367.8 MB, free: 2.949 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1457, allocations: 0 / 367.8 MB, free: 2.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001844/0.1475, allocations: 0.8851 MB / 368.6 MB, free: 2.055 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.1476, allocations: 7.938 kB / 368.6 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.1476, allocations: 0 / 368.6 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/0.1487, allocations: 479.3 kB / 369.1 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003814/0.1491, allocations: 75.89 kB / 369.2 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001349/0.1505, allocations: 1.079 MB / 370.3 MB, free: 408 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005329/0.151, allocations: 64.03 kB / 370.3 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.756e-05/0.1511, allocations: 23.98 kB / 370.4 MB, free: 320 kB / 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.000287/0.1514, allocations: 185.6 kB / 370.5 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.1515, allocations: 43.59 kB / 370.6 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001603/0.1517, allocations: 67.77 kB / 370.6 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1517, allocations: 12 kB / 370.7 MB, free: 0 / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/0.1517, allocations: 0 / 370.7 MB, free: 0 / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1764/0.3281, allocations: 64 / 370.7 MB, free: 26.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003781/0.3319, allocations: 1.765 MB / 372.4 MB, free: 26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.3319, allocations: 1.672 kB / 372.4 MB, free: 26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000394/0.3323, allocations: 79.19 kB / 372.5 MB, free: 26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001022/0.3333, allocations: 449.7 kB / 372.9 MB, free: 25.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.435e-05/0.3334, allocations: 21.34 kB / 373 MB, free: 25.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001293/0.3347, allocations: 1.043 MB / 374 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3347, allocations: 0.75 kB / 374 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002445/0.3372, allocations: 1.299 MB / 375.3 MB, free: 24.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002556/0.3375, allocations: 176.3 kB / 375.5 MB, free: 24.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.536e-05/0.3376, allocations: 26.88 kB / 375.5 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004413/0.338, allocations: 50.8 kB / 375.5 MB, free: 24.56 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002144/0.3382, allocations: 87.78 kB / 375.6 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.914e-05/0.3383, allocations: 23.41 kB / 375.7 MB, free: 24.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002745/0.3386, allocations: 243.1 kB / 375.9 MB, free: 24.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3386, allocations: 0 / 375.9 MB, free: 24.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004871/0.3391, allocations: 147.6 kB / 376 MB, free: 24.4 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.0002588/0.3393, allocations: 152.2 kB / 376.2 MB, free: 24.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001742/0.3411, allocations: 0.746 MB / 376.9 MB, free: 24.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3411, allocations: 0 / 376.9 MB, free: 24.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008434/0.342, allocations: 396.4 kB / 377.3 MB, free: 23.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005263/0.3425, allocations: 48.08 kB / 377.4 MB, free: 23.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002636/0.3451, allocations: 1.161 MB / 378.5 MB, free: 23.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.3454, allocations: 0.8189 MB / 379.3 MB, free: 22.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.3456, allocations: 43.92 kB / 379.4 MB, free: 22.67 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3456, allocations: 0 / 379.4 MB, free: 22.67 MB / 302.1 MB Notification: Performance of Templates: time 0.01083/0.3564, allocations: 7.191 MB / 386.6 MB, free: 20.28 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