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.001352/0.001352, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001456/0.001456, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.321/1.321, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001052/0.001052, allocations: 50.14 kB / 300.6 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09579/0.09687, allocations: 49.44 MB / 350 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003707/0.1006, allocations: 2.335 MB / 352.4 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.1023, allocations: 0.9208 MB / 353.3 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001916/0.1025, allocations: 7.938 kB / 353.3 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002246/0.1027, allocations: 47.58 kB / 353.4 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004762/0.1032, allocations: 135.2 kB / 353.5 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003677/0.1036, allocations: 180.5 kB / 353.7 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004122/0.104, allocations: 410.8 kB / 354.1 MB, free: 404 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001528/0.1042, allocations: 60.72 kB / 354.1 MB, free: 340 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002556/0.1045, allocations: 179.5 kB / 354.3 MB, free: 160 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003625/0.1048, allocations: 227.2 kB / 354.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.477e-05/0.1049, allocations: 32 kB / 354.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000221/0.1051, allocations: 115.9 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.1053, allocations: 95.72 kB / 354.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001577/0.1054, allocations: 167.2 kB / 354.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004576/0.1059, allocations: 442.9 kB / 355.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.1059, allocations: 4 kB / 355.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1059, allocations: 0 / 355.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.1059, allocations: 0 / 355.4 MB, free: 15.09 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.001094/0.107, allocations: 0.6316 MB / 356 MB, free: 14.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.1071, allocations: 8.031 kB / 356 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003048/0.1074, allocations: 48.55 kB / 356 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004195/0.1078, allocations: 312.2 kB / 356.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000139/0.108, allocations: 88.52 kB / 356.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.658e-05/0.1081, allocations: 24.38 kB / 356.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006706/0.1087, allocations: 389.3 kB / 356.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.1088, allocations: 4 kB / 356.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.1088, allocations: 8 kB / 356.9 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.315e-06/0.1088, allocations: 8 kB / 356.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008812/0.1097, allocations: 413.9 kB / 357.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001962/0.1117, allocations: 1.241 MB / 358.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006702/0.1124, allocations: 361.6 kB / 358.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003773/0.1128, allocations: 192.8 kB / 359 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.338e-05/0.1128, allocations: 11.97 kB / 359.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.1128, allocations: 38.56 kB / 359.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.074e-06/0.1129, allocations: 0 / 359.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004723/0.1176, allocations: 1.914 MB / 361 MB, free: 9.125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.524e-05/0.1177, allocations: 88.86 kB / 361.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002923/0.118, allocations: 238.1 kB / 361.3 MB, free: 8.773 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.117e-05/0.118, allocations: 41.69 kB / 361.4 MB, free: 8.727 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.981e-05/0.1181, allocations: 136.6 kB / 361.5 MB, free: 8.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.1182, allocations: 149.9 kB / 361.6 MB, free: 8.441 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/0.1184, allocations: 82.03 kB / 361.7 MB, free: 8.355 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.1185, allocations: 338.8 kB / 362.1 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003888/0.1189, allocations: 164.8 kB / 362.2 MB, free: 7.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004281/0.1194, allocations: 237.8 kB / 362.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007214/0.1201, allocations: 343.1 kB / 362.8 MB, free: 7.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1201, allocations: 0 / 362.8 MB, free: 7.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001225/0.1213, allocations: 0.5551 MB / 363.3 MB, free: 6.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.1214, allocations: 7.984 kB / 363.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1214, allocations: 0 / 363.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008121/0.1222, allocations: 256.8 kB / 363.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002556/0.1225, allocations: 51.91 kB / 363.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004111/0.1266, allocations: 2.881 MB / 366.5 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003022/0.127, allocations: 31.94 kB / 366.6 MB, free: 3.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.409e-05/0.127, allocations: 16 kB / 366.6 MB, free: 3.312 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.0001932/0.1272, allocations: 157.7 kB / 366.7 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.678e-05/0.1273, allocations: 23.72 kB / 366.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.1274, allocations: 42.98 kB / 366.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.972e-06/0.1274, allocations: 4 kB / 366.8 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.1274, allocations: 12 kB / 366.8 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1274, allocations: 0 / 366.8 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001836/0.1293, allocations: 1.089 MB / 367.9 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1293, allocations: 0 / 367.9 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002215/0.1295, allocations: 47.91 kB / 367.9 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006672/0.1302, allocations: 240.7 kB / 368.2 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.239e-05/0.1302, allocations: 7.984 kB / 368.2 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1739/0.3041, allocations: 2.844 MB / 371 MB, free: 24.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.3042, allocations: 0.5156 kB / 371 MB, free: 24.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001568/0.3058, allocations: 0.8156 MB / 371.9 MB, free: 24.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001425/0.3059, allocations: 137.7 kB / 372 MB, free: 24.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.481e-05/0.306, allocations: 10.69 kB / 372 MB, free: 24.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002548/0.3062, allocations: 29.52 kB / 372 MB, free: 24.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/0.3064, allocations: 58.27 kB / 372.1 MB, free: 24.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.372e-05/0.3065, allocations: 17.97 kB / 372.1 MB, free: 24.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002018/0.3067, allocations: 176.5 kB / 372.3 MB, free: 24.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3067, allocations: 0.9688 kB / 372.3 MB, free: 24.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006003/0.3073, allocations: 140.2 kB / 372.4 MB, free: 24.02 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.0002307/0.3075, allocations: 145.9 kB / 372.6 MB, free: 23.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001329/0.3089, allocations: 0.6491 MB / 373.2 MB, free: 23.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3089, allocations: 3.938 kB / 373.2 MB, free: 23.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006533/0.3095, allocations: 431.3 kB / 373.6 MB, free: 23.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004038/0.31, allocations: 34.39 kB / 373.7 MB, free: 23.58 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.3111, allocations: 0.6936 MB / 374.4 MB, free: 23.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001868/0.3113, allocations: 0.7771 MB / 375.1 MB, free: 22.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001776/0.3115, allocations: 62.77 kB / 375.2 MB, free: 22.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.698e-05/0.3116, allocations: 29.36 kB / 375.2 MB, free: 22.52 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3116, allocations: 0 / 375.2 MB, free: 22.52 MB / 302.1 MB Notification: Performance of Templates: time 0.01151/0.3231, allocations: 7.099 MB / 382.3 MB, free: 21.04 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