Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001945/0.001945, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.54/1.54, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 51.92 kB / 373.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1035, allocations: 53.33 MB / 426.8 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004352/0.1078, allocations: 2.538 MB / 429.3 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00209/0.1099, allocations: 1.143 MB / 430.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.11, allocations: 4 kB / 430.5 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002898/0.1103, allocations: 67.42 kB / 430.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004571/0.1108, allocations: 175.9 kB / 430.7 MB, free: 348 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004058/0.1112, allocations: 175.6 kB / 430.9 MB, free: 172 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2005/0.3117, allocations: 0.5154 MB / 431.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002186/0.3119, allocations: 68.19 kB / 431.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000454/0.3123, allocations: 237.7 kB / 431.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000335/0.3127, allocations: 279.9 kB / 432 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.781e-05/0.3128, allocations: 41.59 kB / 432 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003152/0.3131, allocations: 140.8 kB / 432.2 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.3132, allocations: 117.9 kB / 432.3 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001563/0.3133, allocations: 205.2 kB / 432.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005562/0.3139, allocations: 0.5412 MB / 433 MB, free: 8.488 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3139, allocations: 0.5156 kB / 433 MB, free: 8.488 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3139, allocations: 1.875 kB / 433 MB, free: 8.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.3139, allocations: 0 / 433 MB, free: 8.488 MB / 350.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.001273/0.3152, allocations: 0.7115 MB / 433.7 MB, free: 8.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.3152, allocations: 9.75 kB / 433.7 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004163/0.3156, allocations: 64.12 kB / 433.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004777/0.3161, allocations: 327.3 kB / 434.1 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.3162, allocations: 88.17 kB / 434.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.29e-05/0.3163, allocations: 38.42 kB / 434.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008493/0.3172, allocations: 421.1 kB / 434.7 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.3172, allocations: 5.188 kB / 434.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.815e-05/0.3172, allocations: 14.91 kB / 434.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.3172, allocations: 8.422 kB / 434.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001127/0.3184, allocations: 471.9 kB / 435.1 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001807/0.3202, allocations: 0.9882 MB / 436.1 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009652/0.3211, allocations: 367.6 kB / 436.5 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005239/0.3217, allocations: 207.7 kB / 436.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.46e-05/0.3217, allocations: 7.922 kB / 436.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.93e-05/0.3217, allocations: 42.03 kB / 436.7 MB, free: 7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.513e-06/0.3217, allocations: 1.531 kB / 436.7 MB, free: 7 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005478/0.3272, allocations: 2.141 MB / 438.9 MB, free: 5.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.089e-05/0.3272, allocations: 87.67 kB / 439 MB, free: 5.781 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000323/0.3276, allocations: 270.4 kB / 439.2 MB, free: 5.629 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.067e-05/0.3276, allocations: 37.34 kB / 439.3 MB, free: 5.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.413e-05/0.3277, allocations: 142.1 kB / 439.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.3278, allocations: 199 kB / 439.6 MB, free: 5.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/0.328, allocations: 92.06 kB / 439.7 MB, free: 5.266 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.156e-05/0.328, allocations: 344.5 kB / 440 MB, free: 4.938 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004809/0.3285, allocations: 190.9 kB / 440.2 MB, free: 4.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005045/0.329, allocations: 240.8 kB / 440.5 MB, free: 4.773 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009211/0.3299, allocations: 387.7 kB / 440.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.3299, allocations: 0.5 kB / 440.8 MB, free: 4.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001434/0.3314, allocations: 0.5992 MB / 441.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3314, allocations: 5.438 kB / 441.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.3314, allocations: 8.062 kB / 441.4 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009109/0.3323, allocations: 302.2 kB / 441.7 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003498/0.3327, allocations: 70.67 kB / 441.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003838/0.3365, allocations: 2.942 MB / 444.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003495/0.3368, allocations: 29.72 kB / 444.8 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.499e-05/0.3369, allocations: 19.48 kB / 444.8 MB, free: 2.07 MB / 350.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.0001958/0.3371, allocations: 159.3 kB / 445 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.3372, allocations: 36.69 kB / 445 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001347/0.3373, allocations: 53.31 kB / 445 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.3373, allocations: 6.125 kB / 445 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3374, allocations: 0 / 445 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.3374, allocations: 3.906 kB / 445.1 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002416/0.3398, allocations: 1.285 MB / 446.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.3398, allocations: 0.7969 kB / 446.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003567/0.3401, allocations: 71.5 kB / 446.4 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000759/0.3409, allocations: 287.8 kB / 446.7 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.174e-05/0.3409, allocations: 18.34 kB / 446.7 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003925/0.3449, allocations: 2.846 MB / 449.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.3449, allocations: 2.219 kB / 449.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002157/0.347, allocations: 0.9476 MB / 450.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002518/0.3473, allocations: 159.8 kB / 450.7 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.032e-05/0.3473, allocations: 13.53 kB / 450.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003503/0.3477, allocations: 34.77 kB / 450.7 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.3479, allocations: 68.33 kB / 450.8 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.587e-05/0.348, allocations: 20.41 kB / 450.8 MB, free: 14.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002909/0.3483, allocations: 204.1 kB / 451 MB, free: 14.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3483, allocations: 4.062 kB / 451 MB, free: 14.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007596/0.349, allocations: 146.3 kB / 451.1 MB, free: 14.17 MB / 366.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.001749/0.3508, allocations: 388.8 kB / 451.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002008/0.3528, allocations: 0.6674 MB / 452.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3528, allocations: 0 / 452.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.3538, allocations: 472.3 kB / 452.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004959/0.3543, allocations: 40.91 kB / 452.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001764/0.3561, allocations: 0.8152 MB / 453.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006501/0.3567, allocations: 0.7987 MB / 454.3 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002601/0.357, allocations: 76.69 kB / 454.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.3571, allocations: 44.89 kB / 454.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3571, allocations: 1.188 kB / 454.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of Templates: time 0.01667/0.3738, allocations: 8.414 MB / 462.8 MB, free: 8.98 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.942129675298929]