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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007744/0.0007745, allocations: 93.47 kB / 17.31 MB, free: 6.535 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.0008446/0.0008446, allocations: 174.8 kB / 18.21 MB, free: 5.684 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.109/1.109, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002094/0.0002094, allocations: 13.28 kB / 302.1 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06912/0.06934, allocations: 50.41 MB / 352.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.001993/0.07135, allocations: 2.106 MB / 354.6 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.07272, allocations: 0.9561 MB / 355.6 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001175/0.07285, allocations: 7.938 kB / 355.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.07301, allocations: 35.77 kB / 355.6 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003707/0.07339, allocations: 131.3 kB / 355.7 MB, free: 468 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002795/0.07368, allocations: 167 kB / 355.9 MB, free: 304 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003611/0.07405, allocations: 450.5 kB / 356.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.0742, allocations: 77.36 kB / 356.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002214/0.07442, allocations: 179.4 kB / 356.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002419/0.07467, allocations: 223.2 kB / 356.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.101e-05/0.07473, allocations: 23.94 kB / 356.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001664/0.0749, allocations: 95.92 kB / 356.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.07502, allocations: 95.64 kB / 357 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001516/0.07518, allocations: 192.8 kB / 357.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002954/0.07548, allocations: 355.4 kB / 357.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.704e-06/0.07549, allocations: 0 / 357.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.07549, allocations: 0 / 357.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.0755, allocations: 0 / 357.5 MB, free: 14.62 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0009654/0.07647, allocations: 0.616 MB / 358.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.809e-05/0.07651, allocations: 12.03 kB / 358.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000268/0.07678, allocations: 48.55 kB / 358.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003486/0.07714, allocations: 319.4 kB / 358.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.07725, allocations: 96.61 kB / 358.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.961e-05/0.07732, allocations: 36.28 kB / 358.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006949/0.07802, allocations: 421 kB / 359.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.07805, allocations: 4 kB / 359.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.42e-05/0.07809, allocations: 8 kB / 359.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.0781, allocations: 12 kB / 359.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008974/0.079, allocations: 486.2 kB / 359.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001444/0.08046, allocations: 0.989 MB / 360.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007285/0.0812, allocations: 429.5 kB / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000421/0.08163, allocations: 234.1 kB / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.366e-05/0.08167, allocations: 8.438 kB / 361.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.0817, allocations: 38.98 kB / 361.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.543e-06/0.08171, allocations: 4 kB / 361.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.004648/0.08636, allocations: 2.238 MB / 363.5 MB, free: 8.379 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/0.08641, allocations: 85.67 kB / 363.6 MB, free: 8.277 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002528/0.08667, allocations: 255.1 kB / 363.8 MB, free: 8.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.084e-05/0.08672, allocations: 37.7 kB / 363.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.805e-05/0.08679, allocations: 141.1 kB / 364 MB, free: 7.836 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.08692, allocations: 177.4 kB / 364.2 MB, free: 7.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.378e-05/0.08699, allocations: 49.69 kB / 364.2 MB, free: 7.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.669e-05/0.08709, allocations: 338.8 kB / 364.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004082/0.08751, allocations: 209 kB / 364.8 MB, free: 7.062 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004205/0.08793, allocations: 248.6 kB / 365 MB, free: 6.809 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007616/0.08871, allocations: 408.4 kB / 365.4 MB, free: 6.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.08872, allocations: 0 / 365.4 MB, free: 6.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001116/0.08984, allocations: 0.6329 MB / 366 MB, free: 5.762 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.08986, allocations: 7.938 kB / 366 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.08987, allocations: 0 / 366 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006324/0.09051, allocations: 266.6 kB / 366.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002729/0.09079, allocations: 67.89 kB / 366.4 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003277/0.09408, allocations: 2.705 MB / 369.1 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002722/0.09436, allocations: 44.06 kB / 369.1 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.644e-05/0.09441, allocations: 16 kB / 369.1 MB, free: 2.531 MB / 302.1 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.0001591/0.09457, allocations: 157.8 kB / 369.3 MB, free: 2.367 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.236e-05/0.09464, allocations: 31.62 kB / 369.3 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.822e-05/0.09474, allocations: 47.31 kB / 369.4 MB, free: 2.289 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.09476, allocations: 11.94 kB / 369.4 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.09477, allocations: 7.984 kB / 369.4 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.247e-06/0.09477, allocations: 0 / 369.4 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00197/0.09675, allocations: 1.284 MB / 370.7 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.09676, allocations: 0 / 370.7 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002813/0.09705, allocations: 67.89 kB / 370.7 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005887/0.09765, allocations: 244.7 kB / 371 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.065e-05/0.09769, allocations: 15.98 kB / 371 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1223/0.22, allocations: 2.593 MB / 373.6 MB, free: 23.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.22, allocations: 5.031 kB / 373.6 MB, free: 23.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.2216, allocations: 0.9792 MB / 374.6 MB, free: 23.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.2218, allocations: 151 kB / 374.7 MB, free: 23.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.924e-05/0.2218, allocations: 11.19 kB / 374.7 MB, free: 23.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002768/0.2221, allocations: 46.97 kB / 374.8 MB, free: 23.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.2222, allocations: 72.03 kB / 374.8 MB, free: 23.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.075e-05/0.2223, allocations: 17.45 kB / 374.8 MB, free: 23.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001744/0.2224, allocations: 192.9 kB / 375 MB, free: 23.35 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2225, allocations: 0 / 375 MB, free: 23.35 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000535/0.223, allocations: 154.4 kB / 375.2 MB, free: 23.35 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: 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.0001642/0.2232, allocations: 143 kB / 375.3 MB, free: 23.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00108/0.2243, allocations: 0.709 MB / 376 MB, free: 23.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2243, allocations: 0 / 376 MB, free: 23.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006457/0.2249, allocations: 488.7 kB / 376.5 MB, free: 22.9 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.2253, allocations: 41.77 kB / 376.6 MB, free: 22.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.2264, allocations: 1.01 MB / 377.6 MB, free: 22.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001782/0.2266, allocations: 0.794 MB / 378.4 MB, free: 21.58 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.2267, allocations: 36.83 kB / 378.4 MB, free: 21.57 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.2268, allocations: 4 kB / 378.4 MB, free: 21.57 MB / 302.1 MB Notification: Performance of Templates: time 0.006946/0.2337, allocations: 5.935 MB / 384.3 MB, free: 20.3 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches