Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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.002202/0.002202, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002356/0.002356, allocations: 212 kB / 23.74 MB, free: 4.656 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.538/1.538, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.CompareBrakingTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|inertia1.w|inertia2.w|inertia3.w|inertia4.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|inertia1.w|inertia2.w|inertia3.w|inertia4.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 43.92 kB / 378.3 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3058, allocations: 53.37 MB / 431.6 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.004209/0.31, allocations: 2.293 MB / 433.9 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.3117, allocations: 0.7712 MB / 434.7 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002284/0.3119, allocations: 7.938 kB / 434.7 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000182/0.3121, allocations: 35.64 kB / 434.7 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000401/0.3125, allocations: 95.27 kB / 434.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004128/0.3129, allocations: 111.7 kB / 434.9 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004654/0.3134, allocations: 298.6 kB / 435.2 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.3135, allocations: 52.56 kB / 435.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.3137, allocations: 107.6 kB / 435.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002312/0.314, allocations: 123.4 kB / 435.5 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.004e-05/0.314, allocations: 20 kB / 435.5 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.62e-05/0.314, allocations: 20 kB / 435.5 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.06e-05/0.3141, allocations: 47.84 kB / 435.6 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.3142, allocations: 131.3 kB / 435.7 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003513/0.3146, allocations: 268.1 kB / 436 MB, free: 2.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.3146, allocations: 0 / 436 MB, free: 2.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3146, allocations: 0 / 436 MB, free: 2.555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.315e-06/0.3146, allocations: 4 kB / 436 MB, free: 2.551 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009157/0.3155, allocations: 457.5 kB / 436.4 MB, free: 2.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.3156, allocations: 12.03 kB / 436.4 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.062e-05/0.3157, allocations: 28.75 kB / 436.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004445/0.3161, allocations: 194.8 kB / 436.7 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.3161, allocations: 16.81 kB / 436.7 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.077e-05/0.3162, allocations: 32.36 kB / 436.7 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000485/0.3167, allocations: 235 kB / 436.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.195e-05/0.3167, allocations: 7.953 kB / 436.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.58e-05/0.3167, allocations: 8 kB / 437 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.3167, allocations: 8 kB / 437 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003518/0.3171, allocations: 139.8 kB / 437.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.3187, allocations: 0.997 MB / 438.1 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004771/0.3192, allocations: 202.4 kB / 438.3 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.3193, allocations: 55.5 kB / 438.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.3194, allocations: 15.98 kB / 438.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.3194, allocations: 38.5 kB / 438.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.343e-06/0.3194, allocations: 0 / 438.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006176/0.32, allocations: 197.3 kB / 438.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.365e-05/0.3201, allocations: 128.5 kB / 438.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.3203, allocations: 199.1 kB / 438.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.3203, allocations: 33.7 kB / 438.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.3205, allocations: 164.2 kB / 439.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.208e-05/0.3205, allocations: 67.44 kB / 439.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.358e-05/0.3206, allocations: 49.66 kB / 439.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3208, allocations: 330.8 kB / 439.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/0.321, allocations: 59.95 kB / 439.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002276/0.3212, allocations: 165.6 kB / 439.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004128/0.3216, allocations: 233.5 kB / 440 MB, free: 14.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3216, allocations: 0 / 440 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005263/0.3221, allocations: 257.2 kB / 440.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.3222, allocations: 19.86 kB / 440.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.3222, allocations: 4.75 kB / 440.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.388e-05/0.3222, allocations: 4 kB / 440.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002846/0.3225, allocations: 63.91 kB / 440.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.3225, allocations: 8.375 kB / 440.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001592/0.3226, allocations: 35.77 kB / 440.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.653e-05/0.3227, allocations: 16 kB / 440.4 MB, free: 13.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001403/0.3228, allocations: 129.8 kB / 440.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.69e-05/0.3229, allocations: 23.84 kB / 440.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.587e-05/0.323, allocations: 25.02 kB / 440.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.323, allocations: 4 kB / 440.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.323, allocations: 0 / 440.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.323, allocations: 7.922 kB / 440.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005359/0.3235, allocations: 248.5 kB / 440.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.3235, allocations: 0 / 440.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004164/0.3239, allocations: 52.22 kB / 440.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.609e-05/0.324, allocations: 11.92 kB / 440.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.966e-05/0.324, allocations: 8 kB / 440.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.975e-06/0.324, allocations: 4 kB / 440.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.324, allocations: 0 / 440.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009981/0.325, allocations: 0.5222 MB / 441.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.414e-05/0.3251, allocations: 27.78 kB / 441.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.382e-05/0.3251, allocations: 0 / 441.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003814/0.3255, allocations: 8 kB / 441.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.269e-05/0.3256, allocations: 11.97 kB / 441.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.458e-05/0.3256, allocations: 12 kB / 441.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001931/0.3258, allocations: 140.5 kB / 441.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3258, allocations: 0 / 441.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006145/0.3264, allocations: 63.84 kB / 441.7 MB, free: 12.4 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,signTorque.phi,inertia2.w,linearSpeedDependentTorque.phi,inertia3.w,quadraticSpeedDependentTorque.phi,inertia4.w,inverseSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001573/0.3265, allocations: 110.4 kB / 441.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005985/0.3271, allocations: 152.5 kB / 441.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3271, allocations: 4.062 kB / 441.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00023/0.3274, allocations: 59.91 kB / 442 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/0.3285, allocations: 52.05 kB / 442 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002219/0.3307, allocations: 0.8315 MB / 442.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005491/0.3313, allocations: 0.748 MB / 443.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001345/0.3314, allocations: 22.28 kB / 443.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.852e-05/0.3315, allocations: 31.42 kB / 443.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3315, allocations: 0 / 443.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of Templates: time 0.009207/0.3407, allocations: 2.419 MB / 446.1 MB, free: 7.93 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CompareBrakingTorque/CompareBrakingTorque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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.862990143010393]