Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 112.6 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007923/0.0007925, allocations: 39.94 kB / 350 MB, free: 68 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2107, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002807/0.2136, allocations: 2.469 MB / 401.9 MB, free: 30.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.2148, allocations: 0.9767 MB / 402.9 MB, free: 29.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.2149, allocations: 4 kB / 402.9 MB, free: 29.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002095/0.2152, allocations: 39.7 kB / 403 MB, free: 29.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003409/0.2155, allocations: 127.3 kB / 403.1 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000239/0.2158, allocations: 163.8 kB / 403.2 MB, free: 29.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002688/0.216, allocations: 450.5 kB / 403.7 MB, free: 29.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.2162, allocations: 73.36 kB / 403.7 MB, free: 29.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001798/0.2164, allocations: 195.4 kB / 403.9 MB, free: 28.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002034/0.2166, allocations: 231.2 kB / 404.2 MB, free: 28.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.87e-05/0.2166, allocations: 20 kB / 404.2 MB, free: 28.61 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001631/0.2168, allocations: 103.9 kB / 404.3 MB, free: 28.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.862e-05/0.2169, allocations: 95.7 kB / 404.4 MB, free: 28.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.217, allocations: 175 kB / 404.6 MB, free: 28.24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003224/0.2174, allocations: 480 kB / 405 MB, free: 27.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2174, allocations: 0 / 405 MB, free: 27.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2174, allocations: 0 / 405 MB, free: 27.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.2174, allocations: 0 / 405 MB, free: 27.77 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.0009804/0.2184, allocations: 0.6705 MB / 405.7 MB, free: 27.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.2184, allocations: 8.031 kB / 405.7 MB, free: 27.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002676/0.2187, allocations: 56.45 kB / 405.8 MB, free: 26.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/0.219, allocations: 323.5 kB / 406.1 MB, free: 26.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-05/0.2191, allocations: 88.61 kB / 406.2 MB, free: 26.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.045e-05/0.2192, allocations: 32.38 kB / 406.2 MB, free: 26.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006183/0.2198, allocations: 417 kB / 406.6 MB, free: 26.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.2199, allocations: 0 / 406.6 MB, free: 26.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.18e-05/0.2199, allocations: 12 kB / 406.6 MB, free: 26.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.2199, allocations: 16 kB / 406.6 MB, free: 26.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008375/0.2207, allocations: 470.2 kB / 407.1 MB, free: 25.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.222, allocations: 0.9774 MB / 408.1 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006557/0.2227, allocations: 414.2 kB / 408.5 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000391/0.2231, allocations: 226.1 kB / 408.7 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.2232, allocations: 8.438 kB / 408.7 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.392e-05/0.2232, allocations: 35 kB / 408.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.654e-06/0.2232, allocations: 0 / 408.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.004283/0.2275, allocations: 2.171 MB / 410.9 MB, free: 21.6 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/0.2275, allocations: 81.67 kB / 411 MB, free: 21.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/0.2278, allocations: 267.1 kB / 411.2 MB, free: 21.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/0.2278, allocations: 37.7 kB / 411.3 MB, free: 21.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.048e-05/0.2278, allocations: 133.1 kB / 411.4 MB, free: 21.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.85e-05/0.2279, allocations: 185.3 kB / 411.6 MB, free: 20.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.2281, allocations: 94.14 kB / 411.7 MB, free: 20.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.82e-05/0.2281, allocations: 338.8 kB / 412 MB, free: 20.44 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000371/0.2285, allocations: 197 kB / 412.2 MB, free: 20.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003802/0.2289, allocations: 248.6 kB / 412.4 MB, free: 19.99 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006789/0.2296, allocations: 396.3 kB / 412.8 MB, free: 19.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2296, allocations: 0 / 412.8 MB, free: 19.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001002/0.2306, allocations: 0.6173 MB / 413.4 MB, free: 18.97 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.2306, allocations: 7.938 kB / 413.5 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2306, allocations: 4 kB / 413.5 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006403/0.2313, allocations: 254.6 kB / 413.7 MB, free: 18.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002657/0.2316, allocations: 59.89 kB / 413.8 MB, free: 18.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002843/0.2344, allocations: 2.682 MB / 416.4 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002641/0.2347, allocations: 32.03 kB / 416.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.963e-05/0.2347, allocations: 19.98 kB / 416.5 MB, free: 15.79 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.0001337/0.2349, allocations: 164 kB / 416.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.367e-05/0.235, allocations: 31.62 kB / 416.7 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.916e-05/0.2351, allocations: 51.3 kB / 416.7 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.2351, allocations: 11.94 kB / 416.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.2351, allocations: 0 / 416.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.83e-06/0.2351, allocations: 3.984 kB / 416.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001726/0.2368, allocations: 1.264 MB / 418 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.2369, allocations: 8.031 kB / 418 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002825/0.2372, allocations: 63.89 kB / 418.1 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005522/0.2377, allocations: 240.6 kB / 418.3 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.279e-05/0.2378, allocations: 15.98 kB / 418.3 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002629/0.2404, allocations: 2.595 MB / 420.9 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.2404, allocations: 4.031 kB / 420.9 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/0.2505, allocations: 6.785 MB / 427.7 MB, free: 4.039 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.2506, allocations: 148.7 kB / 427.9 MB, free: 3.875 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.983e-05/0.2507, allocations: 12 kB / 427.9 MB, free: 3.863 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002818/0.251, allocations: 31.91 kB / 427.9 MB, free: 3.832 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/0.2512, allocations: 64.33 kB / 428 MB, free: 3.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.044e-05/0.2512, allocations: 15.98 kB / 428 MB, free: 3.754 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001687/0.2514, allocations: 200.6 kB / 428.2 MB, free: 3.559 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2514, allocations: 0 / 428.2 MB, free: 3.559 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006951/0.2521, allocations: 224 kB / 428.4 MB, free: 3.34 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.0002802/0.2524, allocations: 171.4 kB / 428.6 MB, free: 3.164 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001134/0.2535, allocations: 0.6994 MB / 429.3 MB, free: 2.445 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2535, allocations: 3.938 kB / 429.3 MB, free: 2.441 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006422/0.2542, allocations: 475.6 kB / 429.7 MB, free: 1.969 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003774/0.2546, allocations: 43.69 kB / 429.8 MB, free: 1.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001623/0.2562, allocations: 1.445 MB / 431.2 MB, free: 440 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.2565, allocations: 0.8048 MB / 432 MB, free: 15.6 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002567/0.2568, allocations: 78.94 kB / 432.1 MB, free: 15.52 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001401/0.2569, allocations: 43.41 kB / 432.2 MB, free: 15.48 MB / 314.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2569, allocations: 0 / 432.2 MB, free: 15.48 MB / 314.7 MB Notification: Performance of Templates: time 0.0152/0.2721, allocations: 10.12 MB / 442.3 MB, free: 5.391 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches