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.001072/0.001072, allocations: 112.1 kB / 17.68 MB, free: 5.473 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.001045/0.001045, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.335/1.335, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 54.92 kB / 302 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09616/0.09719, allocations: 49.44 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00383/0.1011, allocations: 2.348 MB / 353.8 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.1029, allocations: 0.917 MB / 354.8 MB, free: 440 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.103, allocations: 4 kB / 354.8 MB, free: 436 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002249/0.1033, allocations: 43.58 kB / 354.8 MB, free: 392 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004908/0.1038, allocations: 135.2 kB / 354.9 MB, free: 256 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003223/0.1041, allocations: 175.6 kB / 355.1 MB, free: 80 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004706/0.1046, allocations: 414.8 kB / 355.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.1048, allocations: 68.69 kB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002127/0.105, allocations: 179.5 kB / 355.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000292/0.1053, allocations: 219.3 kB / 356 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.164e-05/0.1054, allocations: 32 kB / 356 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002164/0.1056, allocations: 123.9 kB / 356.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001294/0.1057, allocations: 95.7 kB / 356.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001634/0.1059, allocations: 171.2 kB / 356.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004577/0.1064, allocations: 454.5 kB / 356.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1064, allocations: 0 / 356.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1064, allocations: 0 / 356.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.1064, allocations: 0 / 356.8 MB, free: 14.35 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.001176/0.1076, allocations: 0.6239 MB / 357.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.1076, allocations: 12.03 kB / 357.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002942/0.1079, allocations: 52.53 kB / 357.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005321/0.1085, allocations: 308.2 kB / 357.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/0.1086, allocations: 92.5 kB / 357.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.281e-05/0.1087, allocations: 24.38 kB / 357.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007262/0.1094, allocations: 385.4 kB / 358.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.1094, allocations: 0 / 358.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.658e-05/0.1095, allocations: 12 kB / 358.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.1095, allocations: 8 kB / 358.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008261/0.1103, allocations: 413.9 kB / 358.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001949/0.1123, allocations: 1.237 MB / 360 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006501/0.113, allocations: 366.5 kB / 360.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003596/0.1133, allocations: 184.8 kB / 360.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.607e-05/0.1134, allocations: 4 kB / 360.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.1134, allocations: 38.56 kB / 360.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.774e-06/0.1134, allocations: 0 / 360.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004632/0.1181, allocations: 1.926 MB / 362.5 MB, free: 8.387 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.1181, allocations: 88.86 kB / 362.6 MB, free: 8.281 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002804/0.1184, allocations: 242.1 kB / 362.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.555e-05/0.1185, allocations: 33.7 kB / 362.8 MB, free: 7.992 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.865e-05/0.1186, allocations: 140.6 kB / 363 MB, free: 7.852 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.1187, allocations: 142.1 kB / 363.1 MB, free: 7.711 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.1188, allocations: 86.02 kB / 363.2 MB, free: 7.621 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.119, allocations: 338.8 kB / 363.5 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003505/0.1193, allocations: 164.8 kB / 363.7 MB, free: 7.121 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004048/0.1197, allocations: 237.8 kB / 363.9 MB, free: 6.871 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006542/0.1204, allocations: 343.2 kB / 364.2 MB, free: 6.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1204, allocations: 4 kB / 364.2 MB, free: 6.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001079/0.1215, allocations: 0.5551 MB / 364.8 MB, free: 5.949 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.1215, allocations: 4.125 kB / 364.8 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.1215, allocations: 8 kB / 364.8 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007715/0.1223, allocations: 248.6 kB / 365.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002402/0.1226, allocations: 55.89 kB / 365.1 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003721/0.1263, allocations: 2.882 MB / 368 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002518/0.1266, allocations: 23.97 kB / 368 MB, free: 2.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.175e-05/0.1266, allocations: 19.94 kB / 368 MB, free: 2.574 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.0002511/0.1269, allocations: 157.8 kB / 368.2 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.905e-05/0.127, allocations: 23.72 kB / 368.2 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.715e-05/0.1271, allocations: 47 kB / 368.3 MB, free: 2.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1271, allocations: 4 kB / 368.3 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.1271, allocations: 0 / 368.3 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.1271, allocations: 3.984 kB / 368.3 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001783/0.1289, allocations: 1.094 MB / 369.4 MB, free: 1.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1289, allocations: 0 / 369.4 MB, free: 1.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002156/0.1291, allocations: 43.91 kB / 369.4 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006674/0.1298, allocations: 236.7 kB / 369.6 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.564e-05/0.1299, allocations: 11.98 kB / 369.6 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1488/0.2787, allocations: 2.827 MB / 372.5 MB, free: 24.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.2787, allocations: 0.6562 kB / 372.5 MB, free: 24.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.2801, allocations: 0.8299 MB / 373.3 MB, free: 24.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/0.2803, allocations: 136.1 kB / 373.4 MB, free: 24.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.155e-05/0.2803, allocations: 12.59 kB / 373.4 MB, free: 24.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.2806, allocations: 27.53 kB / 373.5 MB, free: 24.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.2807, allocations: 59.03 kB / 373.5 MB, free: 24.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.242e-05/0.2808, allocations: 13 kB / 373.5 MB, free: 24.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000174/0.281, allocations: 186.3 kB / 373.7 MB, free: 24.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.281, allocations: 0 / 373.7 MB, free: 24.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000559/0.2815, allocations: 137.5 kB / 373.9 MB, free: 24 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.0002081/0.2818, allocations: 143.1 kB / 374 MB, free: 23.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001237/0.283, allocations: 0.6237 MB / 374.6 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.283, allocations: 1.812 kB / 374.6 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006465/0.2837, allocations: 444.6 kB / 375.1 MB, free: 23.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003748/0.2841, allocations: 35.81 kB / 375.1 MB, free: 23.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.2851, allocations: 0.6939 MB / 375.8 MB, free: 23.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002054/0.2854, allocations: 0.78 MB / 376.6 MB, free: 22.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001593/0.2855, allocations: 62.3 kB / 376.6 MB, free: 22.35 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.082e-05/0.2856, allocations: 29.17 kB / 376.7 MB, free: 22.34 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2856, allocations: 0 / 376.7 MB, free: 22.34 MB / 302.1 MB Notification: Performance of Templates: time 0.01159/0.2972, allocations: 7.098 MB / 383.8 MB, free: 20.75 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/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