Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001038/0.001038, allocations: 114.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00122/0.00122, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 56.47 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1024, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00411/0.1065, allocations: 2.541 MB / 361.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00194/0.1085, allocations: 1.123 MB / 362.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.1086, allocations: 11.94 kB / 362.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002994/0.109, allocations: 67.42 kB / 362.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004535/0.1094, allocations: 174.3 kB / 362.8 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003799/0.1098, allocations: 179.6 kB / 363 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004932/0.1103, allocations: 0.518 MB / 363.5 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001903/0.1105, allocations: 94.55 kB / 363.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003262/0.1109, allocations: 231.3 kB / 363.8 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003601/0.1112, allocations: 271.2 kB / 364.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.39e-05/0.1113, allocations: 40 kB / 364.1 MB, free: 8.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002307/0.1115, allocations: 139.9 kB / 364.3 MB, free: 7.953 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.1117, allocations: 119.6 kB / 364.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001821/0.1119, allocations: 199.1 kB / 364.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00057/0.1125, allocations: 0.553 MB / 365.1 MB, free: 7.086 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1125, allocations: 4 kB / 365.1 MB, free: 7.082 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1125, allocations: 0 / 365.1 MB, free: 7.082 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1125, allocations: 3.938 kB / 365.1 MB, free: 7.078 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.001253/0.1138, allocations: 0.7094 MB / 365.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.1138, allocations: 8.031 kB / 365.9 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003926/0.1142, allocations: 60.53 kB / 365.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005164/0.1147, allocations: 319.3 kB / 366.2 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001275/0.1149, allocations: 88.61 kB / 366.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.74e-05/0.115, allocations: 36.38 kB / 366.4 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000767/0.1157, allocations: 429 kB / 366.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.1158, allocations: 0 / 366.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.724e-05/0.1158, allocations: 12 kB / 366.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1158, allocations: 8 kB / 366.8 MB, free: 5.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009829/0.1168, allocations: 474.2 kB / 367.3 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.1185, allocations: 0.9851 MB / 368.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000862/0.1194, allocations: 392.5 kB / 368.6 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004704/0.1199, allocations: 226.3 kB / 368.8 MB, free: 3.199 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.291e-05/0.1199, allocations: 12.36 kB / 368.9 MB, free: 3.188 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.1199, allocations: 39 kB / 368.9 MB, free: 3.141 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 2.154e-06/0.1199, allocations: 0 / 368.9 MB, free: 3.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005239/0.1252, allocations: 2.148 MB / 371 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/0.1253, allocations: 85.67 kB / 371.1 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003103/0.1256, allocations: 276.9 kB / 371.4 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.332e-05/0.1256, allocations: 37.7 kB / 371.4 MB, free: 472 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.437e-05/0.1257, allocations: 137.1 kB / 371.6 MB, free: 328 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000127/0.1259, allocations: 177.4 kB / 371.7 MB, free: 148 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.126, allocations: 94.23 kB / 371.8 MB, free: 48 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1935/0.3195, allocations: 343.1 kB / 372.2 MB, free: 20.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008426/0.3204, allocations: 190 kB / 372.4 MB, free: 20.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006956/0.3211, allocations: 243.6 kB / 372.6 MB, free: 20.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/0.3222, allocations: 385.7 kB / 373 MB, free: 20.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.3223, allocations: 0.5 kB / 373 MB, free: 20.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001862/0.3241, allocations: 0.6114 MB / 373.6 MB, free: 20.06 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.3242, allocations: 7.094 kB / 373.6 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.3242, allocations: 1.297 kB / 373.6 MB, free: 20.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001148/0.3254, allocations: 303.5 kB / 373.9 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004203/0.3258, allocations: 72.75 kB / 374 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005039/0.3308, allocations: 2.941 MB / 376.9 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004556/0.3313, allocations: 29.53 kB / 376.9 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.311e-05/0.3314, allocations: 21.81 kB / 376.9 MB, free: 17.88 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.0002555/0.3317, allocations: 165 kB / 377.1 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.3318, allocations: 33.28 kB / 377.1 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.3319, allocations: 54.19 kB / 377.2 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.3319, allocations: 7.938 kB / 377.2 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.332, allocations: 1.766 kB / 377.2 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.332, allocations: 6.516 kB / 377.2 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003131/0.3351, allocations: 1.296 MB / 378.5 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.748e-06/0.3351, allocations: 0 / 378.5 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004433/0.3356, allocations: 72.17 kB / 378.6 MB, free: 16.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009507/0.3365, allocations: 290.1 kB / 378.9 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.048e-05/0.3366, allocations: 11.88 kB / 378.9 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004526/0.3411, allocations: 2.843 MB / 381.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3412, allocations: 0 / 381.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002455/0.3436, allocations: 0.9613 MB / 382.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002971/0.3439, allocations: 157.2 kB / 382.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.3441, allocations: 12.27 kB / 382.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004299/0.3445, allocations: 28.92 kB / 382.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002584/0.3448, allocations: 74.56 kB / 382.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.976e-05/0.3449, allocations: 24.11 kB / 383 MB, free: 14.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003238/0.3452, allocations: 202.9 kB / 383.2 MB, free: 14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3452, allocations: 0 / 383.2 MB, free: 14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009544/0.3462, allocations: 152.4 kB / 383.3 MB, free: 13.98 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.0012/0.3474, allocations: 369.8 kB / 383.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002137/0.3495, allocations: 0.695 MB / 384.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.3495, allocations: 4 kB / 384.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.3507, allocations: 478.5 kB / 384.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006259/0.3513, allocations: 50.66 kB / 384.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.3536, allocations: 0.819 MB / 385.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003831/0.354, allocations: 0.7994 MB / 386.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000374/0.3543, allocations: 77.92 kB / 386.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001731/0.3545, allocations: 37.12 kB / 386.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3545, allocations: 4 kB / 386.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of Templates: time 0.01764/0.3722, allocations: 8.239 MB / 394.9 MB, free: 9.086 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches