Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 92.78 kB / 16.65 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.001434/0.001434, allocations: 175.9 kB / 17.56 MB, free: 6.18 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.529/1.529, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002852/0.0002851, allocations: 11.92 kB / 301.4 MB, free: 5.922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09743/0.09773, allocations: 50.41 MB / 351.8 MB, free: 3.496 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002508/0.1003, allocations: 2.025 MB / 353.9 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00154/0.1018, allocations: 0.9172 MB / 354.8 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.102, allocations: 4 kB / 354.8 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001784/0.1022, allocations: 31.72 kB / 354.8 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004199/0.1026, allocations: 115.4 kB / 354.9 MB, free: 392 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002988/0.1029, allocations: 155.8 kB / 355.1 MB, free: 236 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003975/0.1033, allocations: 394.8 kB / 355.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.1035, allocations: 52.67 kB / 355.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002102/0.1037, allocations: 171.4 kB / 355.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002781/0.104, allocations: 199.3 kB / 355.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.463e-05/0.104, allocations: 16 kB / 355.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002016/0.1042, allocations: 95.86 kB / 356 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.1044, allocations: 87.7 kB / 356.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001518/0.1045, allocations: 168.9 kB / 356.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004248/0.105, allocations: 426.8 kB / 356.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.105, allocations: 0 / 356.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.105, allocations: 0 / 356.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.105, allocations: 0 / 356.6 MB, free: 14.64 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001022/0.106, allocations: 0.581 MB / 357.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.1061, allocations: 12.02 kB / 357.2 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002974/0.1064, allocations: 48.55 kB / 357.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004044/0.1068, allocations: 303.7 kB / 357.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.1069, allocations: 88.52 kB / 357.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.938e-05/0.107, allocations: 24.38 kB / 357.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007169/0.1077, allocations: 385.4 kB / 358.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.1077, allocations: 0 / 358.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.978e-05/0.1078, allocations: 15.98 kB / 358.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.1078, allocations: 11.98 kB / 358.1 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008864/0.1087, allocations: 425.9 kB / 358.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002006/0.1107, allocations: 1.245 MB / 359.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006908/0.1114, allocations: 369.5 kB / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004007/0.1118, allocations: 192.7 kB / 360.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.958e-05/0.1119, allocations: 12.14 kB / 360.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.1119, allocations: 38.56 kB / 360.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.493e-06/0.1119, allocations: 0 / 360.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004911/0.1168, allocations: 1.969 MB / 362.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.866e-05/0.1169, allocations: 84.86 kB / 362.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003106/0.1172, allocations: 238.2 kB / 362.6 MB, free: 8.297 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.488e-05/0.1173, allocations: 41.7 kB / 362.7 MB, free: 8.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.931e-05/0.1174, allocations: 136.6 kB / 362.8 MB, free: 8.113 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.1175, allocations: 149.9 kB / 363 MB, free: 7.965 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.23e-05/0.1176, allocations: 37.7 kB / 363 MB, free: 7.922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1178, allocations: 342.8 kB / 363.3 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003868/0.1182, allocations: 164.8 kB / 363.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004366/0.1186, allocations: 241.9 kB / 363.7 MB, free: 7.164 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008228/0.1194, allocations: 351.2 kB / 364.1 MB, free: 6.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1195, allocations: 3.938 kB / 364.1 MB, free: 6.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001243/0.1207, allocations: 0.563 MB / 364.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.1207, allocations: 8 kB / 364.6 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.1207, allocations: 0 / 364.6 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007501/0.1215, allocations: 256.6 kB / 364.9 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002814/0.1218, allocations: 59.95 kB / 365 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004288/0.1261, allocations: 2.66 MB / 367.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002862/0.1264, allocations: 31.97 kB / 367.6 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.734e-05/0.1265, allocations: 16 kB / 367.7 MB, free: 3.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.000212/0.1267, allocations: 165.7 kB / 367.8 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.05e-05/0.1268, allocations: 27.66 kB / 367.9 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001012/0.1269, allocations: 39 kB / 367.9 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1269, allocations: 4 kB / 367.9 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1269, allocations: 0 / 367.9 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.1269, allocations: 3.984 kB / 367.9 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001919/0.1288, allocations: 1.104 MB / 369 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1288, allocations: 0 / 369 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002188/0.1291, allocations: 43.97 kB / 369 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007033/0.1298, allocations: 240.7 kB / 369.3 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.467e-05/0.1298, allocations: 15.98 kB / 369.3 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2132/0.343, allocations: 2.591 MB / 371.9 MB, free: 23.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.343, allocations: 2.219 kB / 371.9 MB, free: 23.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/0.3448, allocations: 0.8305 MB / 372.7 MB, free: 23.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001528/0.3449, allocations: 143.3 kB / 372.9 MB, free: 23.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.766e-05/0.345, allocations: 10.53 kB / 372.9 MB, free: 23.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002691/0.3453, allocations: 30.06 kB / 372.9 MB, free: 23.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.3455, allocations: 60.77 kB / 373 MB, free: 23.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.656e-05/0.3455, allocations: 14.98 kB / 373 MB, free: 23.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002364/0.3458, allocations: 181.9 kB / 373.2 MB, free: 22.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3458, allocations: 0 / 373.2 MB, free: 22.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006248/0.3464, allocations: 139.2 kB / 373.3 MB, free: 22.99 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0002304/0.3466, allocations: 140.1 kB / 373.4 MB, free: 22.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001303/0.3479, allocations: 0.637 MB / 374.1 MB, free: 22.76 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.348, allocations: 0 / 374.1 MB, free: 22.76 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007032/0.3487, allocations: 443.4 kB / 374.5 MB, free: 22.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003889/0.3491, allocations: 33.42 kB / 374.5 MB, free: 22.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.3503, allocations: 0.8533 MB / 375.4 MB, free: 22.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.3506, allocations: 0.7783 MB / 376.2 MB, free: 21.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001896/0.3508, allocations: 60.8 kB / 376.2 MB, free: 21.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.273e-05/0.3508, allocations: 28.69 kB / 376.2 MB, free: 21.51 MB / 302.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3509, allocations: 0 / 376.2 MB, free: 21.51 MB / 302.1 MB Notification: Performance of Templates: time 0.01337/0.3642, allocations: 6.566 MB / 382.8 MB, free: 20.26 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches