Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 101.2 kB / 16.5 MB, free: 6.688 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.00145/0.001451, allocations: 194.1 kB / 17.42 MB, free: 6.09 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.327/1.327, allocations: 222.9 MB / 241.1 MB, free: 13.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001629/0.00163, allocations: 51.77 kB / 300 MB, free: 6.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1229, allocations: 49.45 MB / 349.4 MB, free: 4.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003157/0.1261, allocations: 2.38 MB / 351.8 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.1274, allocations: 0.9326 MB / 352.7 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.594e-05/0.1276, allocations: 4 kB / 352.7 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00017/0.1277, allocations: 39.7 kB / 352.8 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003371/0.1281, allocations: 108.4 kB / 352.9 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002655/0.1284, allocations: 147.8 kB / 353 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003267/0.1287, allocations: 402.8 kB / 353.4 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.1288, allocations: 60.66 kB / 353.5 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001681/0.129, allocations: 171.4 kB / 353.6 MB, free: 348 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002262/0.1292, allocations: 203.3 kB / 353.8 MB, free: 144 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.175e-05/0.1293, allocations: 20 kB / 353.8 MB, free: 124 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.1295, allocations: 103.8 kB / 353.9 MB, free: 20 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.1296, allocations: 79.84 kB / 354 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001497/0.1298, allocations: 155.2 kB / 354.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004137/0.1302, allocations: 430.7 kB / 354.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1302, allocations: 0 / 354.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.1302, allocations: 0 / 354.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.1302, allocations: 0 / 354.6 MB, free: 15.37 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001045/0.1313, allocations: 0.6317 MB / 355.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.1313, allocations: 8.031 kB / 355.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003052/0.1316, allocations: 52.55 kB / 355.3 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003651/0.132, allocations: 303.7 kB / 355.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.1321, allocations: 84.52 kB / 355.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.215e-05/0.1322, allocations: 32.31 kB / 355.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006634/0.1329, allocations: 381.4 kB / 356.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.1329, allocations: 0 / 356.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.71e-05/0.1329, allocations: 12 kB / 356.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.1329, allocations: 8 kB / 356.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008778/0.1338, allocations: 421.9 kB / 356.5 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001911/0.1358, allocations: 1.234 MB / 357.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006422/0.1364, allocations: 358.5 kB / 358.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003698/0.1368, allocations: 188.7 kB / 358.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.456e-05/0.1368, allocations: 8.141 kB / 358.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.1369, allocations: 38.56 kB / 358.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.613e-06/0.1369, allocations: 0 / 358.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004643/0.1415, allocations: 1.926 MB / 360.2 MB, free: 9.402 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.797e-05/0.1416, allocations: 84.86 kB / 360.3 MB, free: 9.301 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/0.1419, allocations: 238.3 kB / 360.6 MB, free: 9.055 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.892e-05/0.1419, allocations: 41.7 kB / 360.6 MB, free: 9.008 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.866e-05/0.142, allocations: 136.6 kB / 360.7 MB, free: 8.871 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.1421, allocations: 145.9 kB / 360.9 MB, free: 8.727 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.1423, allocations: 86.03 kB / 361 MB, free: 8.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1424, allocations: 334.8 kB / 361.3 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003973/0.1428, allocations: 168.8 kB / 361.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000404/0.1432, allocations: 233.9 kB / 361.7 MB, free: 7.891 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006689/0.1439, allocations: 343.2 kB / 362 MB, free: 7.539 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.582e-06/0.1439, allocations: 0 / 362 MB, free: 7.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001094/0.145, allocations: 0.5512 MB / 362.6 MB, free: 6.977 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.145, allocations: 4 kB / 362.6 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.145, allocations: 4 kB / 362.6 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007351/0.1458, allocations: 264.7 kB / 362.8 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000258/0.146, allocations: 47.97 kB / 362.9 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003603/0.1497, allocations: 2.644 MB / 365.5 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002675/0.1499, allocations: 28 kB / 365.5 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.115e-05/0.15, allocations: 16 kB / 365.6 MB, free: 3.84 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001634/0.1502, allocations: 157.1 kB / 365.7 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.112e-05/0.1502, allocations: 27.72 kB / 365.7 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.602e-05/0.1503, allocations: 43 kB / 365.8 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1503, allocations: 4 kB / 365.8 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1503, allocations: 0 / 365.8 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.1504, allocations: 7.922 kB / 365.8 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00172/0.1521, allocations: 1.093 MB / 366.9 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.1521, allocations: 4 kB / 366.9 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002226/0.1523, allocations: 43.97 kB / 366.9 MB, free: 2.398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006484/0.153, allocations: 228.7 kB / 367.2 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.235e-05/0.153, allocations: 15.92 kB / 367.2 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1643/0.3173, allocations: 2.596 MB / 369.8 MB, free: 24.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3174, allocations: 5.266 kB / 369.8 MB, free: 24.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.3189, allocations: 0.8166 MB / 370.6 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001303/0.319, allocations: 139.3 kB / 370.7 MB, free: 24.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.601e-05/0.3191, allocations: 10.69 kB / 370.7 MB, free: 24.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002679/0.3194, allocations: 25.08 kB / 370.8 MB, free: 24.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.3195, allocations: 64.27 kB / 370.8 MB, free: 24.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/0.3196, allocations: 15.56 kB / 370.8 MB, free: 24.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001901/0.3198, allocations: 177.2 kB / 371 MB, free: 24.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3198, allocations: 1.156 kB / 371 MB, free: 24.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000608/0.3204, allocations: 140.3 kB / 371.2 MB, free: 24.06 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000206/0.3206, allocations: 132.6 kB / 371.3 MB, free: 23.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.3218, allocations: 0.6277 MB / 371.9 MB, free: 23.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3218, allocations: 1.438 kB / 371.9 MB, free: 23.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006761/0.3225, allocations: 429.4 kB / 372.3 MB, free: 23.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003903/0.3229, allocations: 34.02 kB / 372.4 MB, free: 23.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.3241, allocations: 0.8049 MB / 373.2 MB, free: 23.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002214/0.3243, allocations: 0.7742 MB / 373.9 MB, free: 22.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001976/0.3245, allocations: 59.39 kB / 374 MB, free: 22.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.355e-05/0.3246, allocations: 32.77 kB / 374 MB, free: 22.62 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3246, allocations: 0 / 374 MB, free: 22.62 MB / 302.1 MB Notification: Performance of Templates: time 0.01133/0.336, allocations: 6.679 MB / 380.7 MB, free: 21.55 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches