Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001871/0.001871, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009507/0.0009507, allocations: 102.5 kB / 296.7 MB, free: 6.484 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 51.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1969/0.1984, allocations: 50.44 MB / 407 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002832/0.2012, allocations: 2.574 MB / 409.6 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.2025, allocations: 1.109 MB / 410.7 MB, free: 24.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.99e-05/0.2026, allocations: 4 kB / 410.7 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002238/0.2028, allocations: 59.61 kB / 410.8 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000304/0.2031, allocations: 162.5 kB / 410.9 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002681/0.2034, allocations: 139.8 kB / 411.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003023/0.2037, allocations: 0.4907 MB / 411.6 MB, free: 23.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.2039, allocations: 85.91 kB / 411.7 MB, free: 23.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002156/0.2041, allocations: 207.3 kB / 411.9 MB, free: 22.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.2043, allocations: 259.1 kB / 412.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.364e-05/0.2044, allocations: 31.94 kB / 412.1 MB, free: 22.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001776/0.2046, allocations: 111.9 kB / 412.3 MB, free: 22.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.805e-05/0.2047, allocations: 103.6 kB / 412.4 MB, free: 22.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001303/0.2048, allocations: 183.1 kB / 412.5 MB, free: 22.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003691/0.2052, allocations: 0.5273 MB / 413.1 MB, free: 21.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.2052, allocations: 0 / 413.1 MB, free: 21.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2052, allocations: 0 / 413.1 MB, free: 21.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.2052, allocations: 0 / 413.1 MB, free: 21.78 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001047/0.2063, allocations: 0.694 MB / 413.8 MB, free: 21.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.2063, allocations: 12.59 kB / 413.8 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003572/0.2067, allocations: 64.42 kB / 413.8 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003484/0.207, allocations: 312.2 kB / 414.1 MB, free: 20.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.426e-05/0.2071, allocations: 92.61 kB / 414.2 MB, free: 20.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.731e-05/0.2072, allocations: 36.31 kB / 414.3 MB, free: 20.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006734/0.2079, allocations: 425 kB / 414.7 MB, free: 20.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.2079, allocations: 3.906 kB / 414.7 MB, free: 20.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.536e-05/0.2079, allocations: 12 kB / 414.7 MB, free: 20.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.2079, allocations: 7.938 kB / 414.7 MB, free: 20.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008623/0.2088, allocations: 474.2 kB / 415.2 MB, free: 19.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001358/0.2102, allocations: 1.001 MB / 416.2 MB, free: 18.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007197/0.2109, allocations: 392.4 kB / 416.5 MB, free: 18.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004134/0.2113, allocations: 230.1 kB / 416.8 MB, free: 17.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.037e-05/0.2114, allocations: 8.438 kB / 416.8 MB, free: 17.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.595e-05/0.2114, allocations: 39 kB / 416.8 MB, free: 17.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.904e-06/0.2114, allocations: 0 / 416.8 MB, free: 17.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.004735/0.2162, allocations: 2.144 MB / 419 MB, free: 15.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/0.2162, allocations: 81.67 kB / 419 MB, free: 15.49 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002636/0.2165, allocations: 264.2 kB / 419.3 MB, free: 15.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.2165, allocations: 37.7 kB / 419.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.993e-05/0.2166, allocations: 145.1 kB / 419.5 MB, free: 15.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.817e-05/0.2167, allocations: 185.3 kB / 419.7 MB, free: 14.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/0.2168, allocations: 94.23 kB / 419.8 MB, free: 14.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.11e-05/0.2169, allocations: 342.8 kB / 420.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003973/0.2173, allocations: 189 kB / 420.3 MB, free: 14.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000417/0.2177, allocations: 244.6 kB / 420.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007199/0.2185, allocations: 384.4 kB / 420.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2185, allocations: 0 / 420.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001096/0.2196, allocations: 0.6095 MB / 421.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.2196, allocations: 11.92 kB / 421.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.2196, allocations: 3.984 kB / 421.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007013/0.2203, allocations: 298.5 kB / 421.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000289/0.2206, allocations: 79.81 kB / 421.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002893/0.2235, allocations: 2.69 MB / 424.6 MB, free: 9.762 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000284/0.2238, allocations: 27.97 kB / 424.6 MB, free: 9.734 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.517e-05/0.2239, allocations: 23.98 kB / 424.6 MB, free: 9.711 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0001441/0.224, allocations: 157 kB / 424.8 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.996e-05/0.2241, allocations: 35.69 kB / 424.8 MB, free: 9.516 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001042/0.2242, allocations: 63.22 kB / 424.9 MB, free: 9.453 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.2242, allocations: 7.938 kB / 424.9 MB, free: 9.445 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.2242, allocations: 0 / 424.9 MB, free: 9.445 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2242, allocations: 3.984 kB / 424.9 MB, free: 9.441 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001863/0.2261, allocations: 1.288 MB / 426.2 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.2261, allocations: 4 kB / 426.2 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002989/0.2264, allocations: 71.88 kB / 426.2 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006269/0.2271, allocations: 280.7 kB / 426.5 MB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.834e-05/0.2271, allocations: 15.98 kB / 426.5 MB, free: 7.723 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002742/0.2299, allocations: 2.607 MB / 429.1 MB, free: 4.984 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2299, allocations: 4.062 kB / 429.1 MB, free: 4.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01075/0.2406, allocations: 6.784 MB / 435.9 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001899/0.2409, allocations: 160.7 kB / 436.1 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.987e-05/0.2409, allocations: 12 kB / 436.1 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003078/0.2412, allocations: 31.91 kB / 436.1 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.2414, allocations: 76.25 kB / 436.2 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-05/0.2415, allocations: 19.98 kB / 436.2 MB, free: 13.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002398/0.2417, allocations: 197.8 kB / 436.4 MB, free: 13.38 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2417, allocations: 0 / 436.4 MB, free: 13.38 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000817/0.2426, allocations: 212.1 kB / 436.6 MB, free: 13.18 MB / 314.7 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: 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 (31): * Single equations (assignments): 30 * 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.001039/0.2436, allocations: 0.4905 MB / 437.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001416/0.245, allocations: 0.6839 MB / 437.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2451, allocations: 4 kB / 437.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008304/0.2459, allocations: 475.7 kB / 438.3 MB, free: 11.65 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.2463, allocations: 45.42 kB / 438.3 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002049/0.2484, allocations: 1.444 MB / 439.8 MB, free: 10.12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/0.2488, allocations: 0.8087 MB / 440.6 MB, free: 9.285 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003223/0.2491, allocations: 106.9 kB / 440.7 MB, free: 9.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001723/0.2493, allocations: 47.39 kB / 440.7 MB, free: 9.133 MB / 314.7 MB Notification: Performance of SimCode: time 4.41e-07/0.2493, allocations: 0 / 440.7 MB, free: 9.133 MB / 314.7 MB Notification: Performance of Templates: time 0.01622/0.2655, allocations: 10.77 MB / 451.5 MB, free: 14.4 MB / 330.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches