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.0009613/0.0009611, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.00115/0.00115, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.39/1.39, allocations: 223.2 MB / 241.2 MB, free: 5.199 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002466/0.0002467, allocations: 9.906 kB / 300.8 MB, free: 5.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0865/0.08676, allocations: 50.42 MB / 351.2 MB, free: 11.37 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002485/0.08928, allocations: 2.032 MB / 353.3 MB, free: 9.324 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.09084, allocations: 0.9137 MB / 354.2 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.09103, allocations: 4 kB / 354.2 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001884/0.09123, allocations: 35.7 kB / 354.2 MB, free: 8.363 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005075/0.09175, allocations: 139.2 kB / 354.4 MB, free: 8.227 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003455/0.09211, allocations: 135.8 kB / 354.5 MB, free: 8.094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004616/0.09258, allocations: 418.5 kB / 354.9 MB, free: 7.684 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.09278, allocations: 81.67 kB / 355 MB, free: 7.602 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003209/0.09311, allocations: 179.4 kB / 355.2 MB, free: 7.426 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003392/0.09346, allocations: 215.3 kB / 355.4 MB, free: 7.215 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.799e-05/0.09354, allocations: 20 kB / 355.4 MB, free: 7.195 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002165/0.09376, allocations: 91.88 kB / 355.5 MB, free: 7.105 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.09389, allocations: 87.7 kB / 355.6 MB, free: 7.02 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.385e-05/0.09399, allocations: 81.52 kB / 355.6 MB, free: 6.934 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003622/0.09436, allocations: 351.1 kB / 356 MB, free: 6.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.09437, allocations: 0 / 356 MB, free: 6.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.09438, allocations: 0 / 356 MB, free: 6.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.188e-06/0.0944, allocations: 0 / 356 MB, free: 6.59 MB / 286.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.001094/0.09549, allocations: 0.6236 MB / 356.6 MB, free: 5.918 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.09553, allocations: 8.031 kB / 356.6 MB, free: 5.91 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002882/0.09583, allocations: 55.56 kB / 356.7 MB, free: 5.855 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005146/0.09635, allocations: 314.2 kB / 357 MB, free: 5.508 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.0965, allocations: 88.05 kB / 357.1 MB, free: 5.406 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.374e-05/0.09657, allocations: 28 kB / 357.1 MB, free: 5.379 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007895/0.09737, allocations: 412.9 kB / 357.5 MB, free: 4.969 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.0974, allocations: 11.94 kB / 357.5 MB, free: 4.957 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.821e-05/0.09744, allocations: 12 kB / 357.5 MB, free: 4.945 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.09746, allocations: 11.95 kB / 357.5 MB, free: 4.934 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009966/0.09846, allocations: 486.2 kB / 358 MB, free: 4.453 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001634/0.1001, allocations: 0.9775 MB / 359 MB, free: 3.418 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000809/0.1009, allocations: 420.4 kB / 359.4 MB, free: 3 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004524/0.1014, allocations: 242.1 kB / 359.6 MB, free: 2.762 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.846e-05/0.1014, allocations: 4.625 kB / 359.6 MB, free: 2.758 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.1015, allocations: 46.88 kB / 359.7 MB, free: 2.699 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 1.613e-06/0.1015, allocations: 4 kB / 359.7 MB, free: 2.695 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.004934/0.1064, allocations: 2.21 MB / 361.9 MB, free: 388 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.1065, allocations: 85.67 kB / 362 MB, free: 284 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002857/0.1068, allocations: 259 kB / 362.2 MB, free: 16 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.275e-05/0.1069, allocations: 37.7 kB / 362.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.942e-05/0.1069, allocations: 133.2 kB / 362.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.1071, allocations: 189.3 kB / 362.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.817e-05/0.1071, allocations: 8 kB / 362.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1073, allocations: 346.8 kB / 362.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004274/0.1077, allocations: 201 kB / 363.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004503/0.1081, allocations: 252.6 kB / 363.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004012/0.1086, allocations: 194.1 kB / 363.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1086, allocations: 0 / 363.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001175/0.1098, allocations: 0.6213 MB / 364.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.1098, allocations: 4 kB / 364.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1098, allocations: 7.984 kB / 364.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006862/0.1105, allocations: 262.8 kB / 364.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002966/0.1108, allocations: 71.89 kB / 364.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003579/0.1144, allocations: 2.695 MB / 367.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002758/0.1147, allocations: 40.06 kB / 367.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.045e-05/0.1147, allocations: 20 kB / 367.3 MB, free: 10.8 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0001784/0.1149, allocations: 153.8 kB / 367.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.7e-05/0.115, allocations: 31.62 kB / 367.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.1151, allocations: 51.31 kB / 367.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.846e-06/0.1151, allocations: 11.95 kB / 367.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.1151, allocations: 3.984 kB / 367.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.1151, allocations: 4 kB / 367.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002207/0.1174, allocations: 1.28 MB / 368.8 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.1174, allocations: 0 / 368.8 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003001/0.1177, allocations: 63.95 kB / 368.9 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006033/0.1183, allocations: 248.6 kB / 369.1 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.69e-05/0.1183, allocations: 15.98 kB / 369.1 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003271/0.1216, allocations: 2.606 MB / 371.7 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.1216, allocations: 3.984 kB / 371.7 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001672/0.1233, allocations: 0.9729 MB / 372.7 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.1235, allocations: 156.6 kB / 372.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.317e-05/0.1235, allocations: 12 kB / 372.9 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002795/0.1238, allocations: 35.97 kB / 372.9 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.124, allocations: 76.25 kB / 373 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-05/0.124, allocations: 19.98 kB / 373 MB, free: 4.824 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002125/0.1242, allocations: 200.7 kB / 373.2 MB, free: 4.629 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1243, allocations: 3.938 kB / 373.2 MB, free: 4.625 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005847/0.1248, allocations: 156 kB / 373.3 MB, free: 4.473 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002353/0.1251, allocations: 135.2 kB / 373.5 MB, free: 4.328 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001306/0.1264, allocations: 0.7073 MB / 374.2 MB, free: 3.609 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1264, allocations: 0 / 374.2 MB, free: 3.609 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007918/0.1272, allocations: 483.7 kB / 374.7 MB, free: 3.117 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004051/0.1276, allocations: 39.17 kB / 374.7 MB, free: 3.082 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/0.1292, allocations: 0.9532 MB / 375.7 MB, free: 2.102 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.1296, allocations: 0.7931 MB / 376.4 MB, free: 1.281 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002266/0.1298, allocations: 62.94 kB / 376.5 MB, free: 1.215 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.1299, allocations: 31.42 kB / 376.5 MB, free: 1.184 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1299, allocations: 0 / 376.5 MB, free: 1.184 MB / 302.1 MB Notification: Performance of Templates: time 0.01236/0.1423, allocations: 6.936 MB / 383.5 MB, free: 10.27 MB / 318.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/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