Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0013/0.0013, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00148/0.00148, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 60.53 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1163, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003941/0.1203, allocations: 2.448 MB / 361.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.1221, allocations: 1.053 MB / 362.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.1223, allocations: 4 kB / 362.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002797/0.1226, allocations: 59.5 kB / 362.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000398/0.123, allocations: 150.4 kB / 362.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003578/0.1233, allocations: 159.7 kB / 362.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004675/0.1238, allocations: 486.5 kB / 363.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001565/0.124, allocations: 68.7 kB / 363.3 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001963/0.1242, allocations: 195.5 kB / 363.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002817/0.1245, allocations: 243.2 kB / 363.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.73e-05/0.1245, allocations: 40 kB / 363.8 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002085/0.1247, allocations: 123.9 kB / 363.9 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.1249, allocations: 115.6 kB / 364 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.1251, allocations: 171.2 kB / 364.2 MB, free: 8.055 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004719/0.1255, allocations: 0.4946 MB / 364.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1255, allocations: 4 kB / 364.7 MB, free: 7.555 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1256, allocations: 0 / 364.7 MB, free: 7.555 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.73e-06/0.1256, allocations: 0 / 364.7 MB, free: 7.555 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.001114/0.1267, allocations: 0.6589 MB / 365.3 MB, free: 6.848 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.1267, allocations: 8.031 kB / 365.3 MB, free: 6.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002918/0.127, allocations: 52.48 kB / 365.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00047/0.1275, allocations: 305.5 kB / 365.7 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/0.1276, allocations: 88.52 kB / 365.8 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.92e-05/0.1277, allocations: 32.28 kB / 365.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000658/0.1284, allocations: 389.3 kB / 366.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.1284, allocations: 0 / 366.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.416e-05/0.1284, allocations: 12 kB / 366.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.1284, allocations: 8 kB / 366.2 MB, free: 5.898 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000808/0.1293, allocations: 413.9 kB / 366.6 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001961/0.1312, allocations: 1.261 MB / 367.9 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006545/0.1319, allocations: 354.4 kB / 368.2 MB, free: 3.805 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003568/0.1323, allocations: 176.8 kB / 368.4 MB, free: 3.629 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.1323, allocations: 11.98 kB / 368.4 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.1323, allocations: 39.28 kB / 368.4 MB, free: 3.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.783e-06/0.1324, allocations: 3.938 kB / 368.4 MB, free: 3.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.004577/0.1369, allocations: 1.906 MB / 370.3 MB, free: 1.547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.712e-05/0.137, allocations: 84.86 kB / 370.4 MB, free: 1.445 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002835/0.1373, allocations: 254.6 kB / 370.7 MB, free: 1.184 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/0.1373, allocations: 37.7 kB / 370.7 MB, free: 1.141 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.877e-05/0.1374, allocations: 140.6 kB / 370.8 MB, free: 1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.1375, allocations: 149.9 kB / 371 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/0.1377, allocations: 82.11 kB / 371.1 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1378, allocations: 338.8 kB / 371.4 MB, free: 436 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003645/0.1382, allocations: 156.8 kB / 371.6 MB, free: 280 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003953/0.1386, allocations: 225.9 kB / 371.8 MB, free: 36 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1968/0.3353, allocations: 335 kB / 372.1 MB, free: 20.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.3354, allocations: 2.812 kB / 372.1 MB, free: 20.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001262/0.3366, allocations: 0.5509 MB / 372.7 MB, free: 20.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.3367, allocations: 6.094 kB / 372.7 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.3367, allocations: 3.844 kB / 372.7 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008632/0.3376, allocations: 293.7 kB / 373 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002567/0.3378, allocations: 56.53 kB / 373 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003785/0.3416, allocations: 2.894 MB / 375.9 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003005/0.342, allocations: 29.72 kB / 375.9 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.134e-05/0.342, allocations: 21.55 kB / 376 MB, free: 18.11 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.0002325/0.3423, allocations: 155.2 kB / 376.1 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.3424, allocations: 27.16 kB / 376.1 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.072e-05/0.3425, allocations: 47.52 kB / 376.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.3425, allocations: 5 kB / 376.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.3425, allocations: 2.625 kB / 376.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.3425, allocations: 2.547 kB / 376.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00225/0.3448, allocations: 1.118 MB / 377.3 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.3448, allocations: 1.188 kB / 377.3 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002582/0.3451, allocations: 48.06 kB / 377.4 MB, free: 17.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008902/0.346, allocations: 281 kB / 377.6 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.89e-05/0.346, allocations: 16.03 kB / 377.6 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003861/0.3499, allocations: 2.852 MB / 380.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3499, allocations: 1.062 kB / 380.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001661/0.3516, allocations: 0.8078 MB / 381.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001942/0.3518, allocations: 145.8 kB / 381.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.182e-05/0.3519, allocations: 12.03 kB / 381.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002617/0.3521, allocations: 24.27 kB / 381.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002348/0.3524, allocations: 68.7 kB / 381.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.648e-05/0.3524, allocations: 16.84 kB / 381.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002817/0.3527, allocations: 182.3 kB / 381.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3527, allocations: 0 / 381.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006876/0.3534, allocations: 138.8 kB / 381.9 MB, free: 14.41 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.0009433/0.3544, allocations: 377.5 kB / 382.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001382/0.3558, allocations: 0.6261 MB / 382.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3558, allocations: 2.281 kB / 382.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007887/0.3566, allocations: 445.9 kB / 383.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000506/0.3571, allocations: 47 kB / 383.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.3587, allocations: 0.6922 MB / 384.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004193/0.3592, allocations: 0.7828 MB / 384.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000277/0.3594, allocations: 72.39 kB / 384.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.3596, allocations: 35.94 kB / 384.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of SimCode: time 1.844e-06/0.3596, allocations: 5.031 kB / 384.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of Templates: time 0.01358/0.3732, allocations: 7.56 MB / 392.5 MB, free: 10.12 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches