Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001007/0.001007, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.151/1.151, allocations: 205.1 MB / 223.7 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008597/0.0008597, allocations: 103.7 kB / 271.2 MB, free: 8.426 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000798/0.0007981, allocations: 43.94 kB / 327.2 MB, free: 320 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1912/0.192, allocations: 46.61 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00288/0.1949, allocations: 2.466 MB / 376.3 MB, free: 43.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001286/0.1962, allocations: 1.01 MB / 377.3 MB, free: 43.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.1964, allocations: 7.375 kB / 377.3 MB, free: 43.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.1966, allocations: 36.73 kB / 377.3 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003463/0.1969, allocations: 144.4 kB / 377.5 MB, free: 42.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002444/0.1972, allocations: 150.1 kB / 377.6 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003228/0.1975, allocations: 459 kB / 378.1 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.1976, allocations: 79.53 kB / 378.1 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002126/0.1979, allocations: 186.2 kB / 378.3 MB, free: 42.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002254/0.1981, allocations: 242.4 kB / 378.6 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.353e-05/0.1982, allocations: 22.81 kB / 378.6 MB, free: 42.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001764/0.1983, allocations: 99.19 kB / 378.7 MB, free: 42.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.1985, allocations: 97.98 kB / 378.8 MB, free: 42.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.1986, allocations: 172.5 kB / 379 MB, free: 42.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003627/0.199, allocations: 480.5 kB / 379.4 MB, free: 41.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.199, allocations: 0 / 379.4 MB, free: 41.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.199, allocations: 0 / 379.4 MB, free: 41.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.199, allocations: 0 / 379.4 MB, free: 41.7 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.001062/0.2001, allocations: 0.6729 MB / 380.1 MB, free: 41.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.2001, allocations: 9.094 kB / 380.1 MB, free: 41.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002759/0.2004, allocations: 53.83 kB / 380.2 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003456/0.2007, allocations: 319.8 kB / 380.5 MB, free: 40.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.2008, allocations: 93.3 kB / 380.6 MB, free: 40.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.471e-05/0.2009, allocations: 39.72 kB / 380.6 MB, free: 40.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006652/0.2016, allocations: 413.4 kB / 381 MB, free: 40.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.2016, allocations: 5.047 kB / 381 MB, free: 40.44 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.356e-05/0.2017, allocations: 11.5 kB / 381 MB, free: 40.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.2017, allocations: 6.781 kB / 381 MB, free: 40.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008716/0.2026, allocations: 476.3 kB / 381.5 MB, free: 40.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.204, allocations: 0.9737 MB / 382.5 MB, free: 39.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006965/0.2047, allocations: 404.5 kB / 382.9 MB, free: 39.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004014/0.2051, allocations: 238.1 kB / 383.1 MB, free: 39.17 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.72e-05/0.2051, allocations: 12.78 kB / 383.1 MB, free: 39.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.563e-05/0.2052, allocations: 37.72 kB / 383.1 MB, free: 39.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.593e-06/0.2052, allocations: 0 / 383.1 MB, free: 39.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.00438/0.2095, allocations: 2.162 MB / 385.3 MB, free: 37.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.236e-05/0.2096, allocations: 81.67 kB / 385.4 MB, free: 37.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002091/0.2098, allocations: 263.1 kB / 385.6 MB, free: 37.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.2098, allocations: 37.7 kB / 385.7 MB, free: 37.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.06e-05/0.2099, allocations: 141.1 kB / 385.8 MB, free: 37.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.441e-05/0.21, allocations: 181.4 kB / 386 MB, free: 36.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.2101, allocations: 90.23 kB / 386.1 MB, free: 36.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.691e-05/0.2102, allocations: 342.8 kB / 386.4 MB, free: 36.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003508/0.2105, allocations: 193 kB / 386.6 MB, free: 36.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003571/0.2109, allocations: 244.6 kB / 386.8 MB, free: 36.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006267/0.2115, allocations: 388.4 kB / 387.2 MB, free: 35.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.2115, allocations: 0 / 387.2 MB, free: 35.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.000952/0.2125, allocations: 0.6173 MB / 387.8 MB, free: 35.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.2125, allocations: 7.938 kB / 387.8 MB, free: 35.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.2125, allocations: 4 kB / 387.8 MB, free: 35.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005839/0.2131, allocations: 257.8 kB / 388.1 MB, free: 34.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002475/0.2134, allocations: 67.88 kB / 388.2 MB, free: 34.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002645/0.216, allocations: 2.694 MB / 390.9 MB, free: 31.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002517/0.2163, allocations: 35.94 kB / 390.9 MB, free: 31.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.2163, allocations: 16 kB / 390.9 MB, free: 31.89 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.0001239/0.2165, allocations: 161.8 kB / 391.1 MB, free: 31.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.239e-05/0.2165, allocations: 31.62 kB / 391.1 MB, free: 31.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.534e-05/0.2166, allocations: 47.31 kB / 391.1 MB, free: 31.65 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.2167, allocations: 7.938 kB / 391.2 MB, free: 31.64 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.2167, allocations: 4 kB / 391.2 MB, free: 31.64 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.2167, allocations: 7.984 kB / 391.2 MB, free: 31.63 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001622/0.2183, allocations: 1.265 MB / 392.4 MB, free: 30.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2183, allocations: 0 / 392.4 MB, free: 30.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002591/0.2186, allocations: 67.89 kB / 392.5 MB, free: 30.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005099/0.2191, allocations: 242.2 kB / 392.7 MB, free: 30 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.076e-05/0.2191, allocations: 15.98 kB / 392.7 MB, free: 29.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002456/0.2216, allocations: 2.608 MB / 395.4 MB, free: 27.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2216, allocations: 0 / 395.4 MB, free: 27.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008866/0.2305, allocations: 6.774 MB / 402.1 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.2306, allocations: 148.7 kB / 402.3 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.688e-05/0.2307, allocations: 15.98 kB / 402.3 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002643/0.231, allocations: 32.05 kB / 402.3 MB, free: 19.94 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.2311, allocations: 72.31 kB / 402.4 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.862e-05/0.2312, allocations: 19.94 kB / 402.4 MB, free: 19.85 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001628/0.2313, allocations: 199.2 kB / 402.6 MB, free: 19.65 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2313, allocations: 0 / 402.6 MB, free: 19.65 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007373/0.2321, allocations: 228 kB / 402.8 MB, free: 19.43 MB / 298.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.0002245/0.2323, allocations: 155.2 kB / 403 MB, free: 19.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.2334, allocations: 0.7033 MB / 403.7 MB, free: 18.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2334, allocations: 0 / 403.7 MB, free: 18.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000611/0.234, allocations: 475.8 kB / 404.1 MB, free: 18.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003645/0.2344, allocations: 40.42 kB / 404.2 MB, free: 18.03 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.2358, allocations: 1.433 MB / 405.6 MB, free: 16.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001839/0.236, allocations: 0.8162 MB / 406.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002175/0.2363, allocations: 70.94 kB / 406.5 MB, free: 15.64 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.2364, allocations: 47.34 kB / 406.6 MB, free: 15.59 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2364, allocations: 0 / 406.6 MB, free: 15.59 MB / 298.7 MB Notification: Performance of Templates: time 0.01139/0.2478, allocations: 10.12 MB / 416.7 MB, free: 5.484 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches