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.001195/0.001195, allocations: 109.7 kB / 17.16 MB, free: 6.324 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.0012/0.0012, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.342/1.342, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 52.02 kB / 300.6 MB, free: 6.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09973/0.1009, allocations: 49.45 MB / 350.1 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003707/0.1047, allocations: 2.461 MB / 352.5 MB, free: 2.383 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001783/0.1065, allocations: 0.9716 MB / 353.5 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002419/0.1068, allocations: 7.938 kB / 353.5 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002556/0.107, allocations: 31.77 kB / 353.5 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005359/0.1076, allocations: 139.3 kB / 353.7 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000389/0.108, allocations: 160.8 kB / 353.8 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004846/0.1085, allocations: 446.5 kB / 354.3 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000198/0.1087, allocations: 81.34 kB / 354.3 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003257/0.109, allocations: 191.3 kB / 354.5 MB, free: 368 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003242/0.1094, allocations: 227.2 kB / 354.7 MB, free: 140 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.648e-05/0.1095, allocations: 27.94 kB / 354.8 MB, free: 112 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000221/0.1097, allocations: 95.94 kB / 354.9 MB, free: 16 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001514/0.1099, allocations: 99.64 kB / 355 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001972/0.1101, allocations: 175.1 kB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003729/0.1104, allocations: 367.4 kB / 355.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1105, allocations: 4 kB / 355.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1105, allocations: 0 / 355.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.1105, allocations: 0 / 355.5 MB, free: 15.38 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.001361/0.1118, allocations: 0.6666 MB / 356.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.1119, allocations: 11.97 kB / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000351/0.1123, allocations: 60.45 kB / 356.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004345/0.1127, allocations: 315.4 kB / 356.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.1128, allocations: 88.61 kB / 356.6 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-05/0.1129, allocations: 32.38 kB / 356.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008193/0.1137, allocations: 421 kB / 357.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.1138, allocations: 4 kB / 357.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.894e-05/0.1138, allocations: 8 kB / 357.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.1138, allocations: 8 kB / 357.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.1149, allocations: 474.3 kB / 357.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001737/0.1166, allocations: 0.9773 MB / 358.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008409/0.1175, allocations: 412.6 kB / 358.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004544/0.118, allocations: 226.1 kB / 359.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.167e-05/0.118, allocations: 16.41 kB / 359.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.118, allocations: 39 kB / 359.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.733e-06/0.1181, allocations: 0 / 359.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005241/0.1233, allocations: 2.167 MB / 361.4 MB, free: 9.207 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.062e-05/0.1234, allocations: 81.67 kB / 361.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003216/0.1237, allocations: 267 kB / 361.7 MB, free: 8.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.877e-05/0.1238, allocations: 37.7 kB / 361.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.912e-05/0.1239, allocations: 129.2 kB / 361.9 MB, free: 8.668 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.124, allocations: 189.3 kB / 362.1 MB, free: 8.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.1242, allocations: 94.23 kB / 362.2 MB, free: 8.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1243, allocations: 334.8 kB / 362.5 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000444/0.1248, allocations: 197 kB / 362.7 MB, free: 7.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000468/0.1253, allocations: 248.6 kB / 362.9 MB, free: 7.602 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008285/0.1261, allocations: 392.4 kB / 363.3 MB, free: 7.211 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1261, allocations: 0 / 363.3 MB, free: 7.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00123/0.1273, allocations: 0.6134 MB / 363.9 MB, free: 6.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.1274, allocations: 11.94 kB / 363.9 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.1274, allocations: 0 / 363.9 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007675/0.1282, allocations: 258.6 kB / 364.2 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003097/0.1285, allocations: 67.89 kB / 364.2 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003779/0.1323, allocations: 2.682 MB / 366.9 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003398/0.1326, allocations: 32 kB / 367 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.419e-05/0.1327, allocations: 19.98 kB / 367 MB, free: 3.391 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.0002111/0.1329, allocations: 153.8 kB / 367.1 MB, free: 3.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.592e-05/0.133, allocations: 31.69 kB / 367.2 MB, free: 3.199 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.1331, allocations: 55.3 kB / 367.2 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.1331, allocations: 7.938 kB / 367.2 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-06/0.1331, allocations: 4 kB / 367.2 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.637e-06/0.1332, allocations: 7.922 kB / 367.2 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002216/0.1354, allocations: 1.268 MB / 368.5 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.1354, allocations: 0 / 368.5 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003274/0.1357, allocations: 63.89 kB / 368.6 MB, free: 1.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000679/0.1364, allocations: 244.7 kB / 368.8 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.04e-05/0.1365, allocations: 15.98 kB / 368.8 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1871/0.3236, allocations: 2.589 MB / 371.4 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3236, allocations: 3.25 kB / 371.4 MB, free: 24.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001982/0.3256, allocations: 0.9555 MB / 372.4 MB, free: 24.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001768/0.3258, allocations: 149.7 kB / 372.5 MB, free: 24.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.728e-05/0.3259, allocations: 12.33 kB / 372.5 MB, free: 24.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000317/0.3262, allocations: 33.95 kB / 372.6 MB, free: 24.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002059/0.3264, allocations: 66.2 kB / 372.6 MB, free: 24.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.678e-05/0.3265, allocations: 21.25 kB / 372.6 MB, free: 24.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000234/0.3267, allocations: 195.9 kB / 372.8 MB, free: 24.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3268, allocations: 1.375 kB / 372.8 MB, free: 24.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000652/0.3274, allocations: 154.9 kB / 373 MB, free: 24.17 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.0003164/0.3277, allocations: 138.6 kB / 373.1 MB, free: 24.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.3294, allocations: 0.6958 MB / 373.8 MB, free: 23.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3294, allocations: 1.281 kB / 373.8 MB, free: 23.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007734/0.3302, allocations: 481.4 kB / 374.3 MB, free: 23.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004444/0.3307, allocations: 39.55 kB / 374.3 MB, free: 23.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.3321, allocations: 0.9552 MB / 375.3 MB, free: 23.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.3324, allocations: 0.7984 MB / 376.1 MB, free: 22.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/0.3326, allocations: 32.88 kB / 376.1 MB, free: 22.42 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3326, allocations: 0 / 376.1 MB, free: 22.42 MB / 302.1 MB Notification: Performance of Templates: time 0.009844/0.3424, allocations: 5.986 MB / 382.1 MB, free: 21.32 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