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.000916/0.000916, allocations: 80.8 kB / 21.5 MB, free: 2.988 MB / 18.57 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.0009295/0.0009295, allocations: 167.9 kB / 24.91 MB, free: 9.156 MB / 18.57 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 0.9656/0.9656, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] 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 2.104e-06/2.104e-06, allocations: 0 / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.525e-05/2.735e-05, allocations: 6.312 kB / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003784/0.003811, allocations: 2.283 MB / 275.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00177/0.005582, allocations: 0.7515 MB / 276.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.005753, allocations: 7.938 kB / 276.5 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001994/0.005953, allocations: 39.58 kB / 276.5 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003522/0.006305, allocations: 103.1 kB / 276.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004188/0.006724, allocations: 107.7 kB / 276.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00038/0.007104, allocations: 302.4 kB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.007271, allocations: 46.53 kB / 277.1 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002414/0.007513, allocations: 167.6 kB / 277.2 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001824/0.007695, allocations: 91.7 kB / 277.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.103e-05/0.007736, allocations: 20 kB / 277.3 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.285e-05/0.007779, allocations: 20 kB / 277.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.525e-05/0.007834, allocations: 55.75 kB / 277.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.679e-05/0.007931, allocations: 79.83 kB / 277.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002753/0.008206, allocations: 199.2 kB / 277.7 MB, free: 13.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.008209, allocations: 0 / 277.7 MB, free: 13.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.00821, allocations: 0 / 277.7 MB, free: 13.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.008215, allocations: 0 / 277.7 MB, free: 13.05 MB / 266.7 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.0007082/0.008924, allocations: 432.2 kB / 278.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.008966, allocations: 8.031 kB / 278.1 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.584e-05/0.009042, allocations: 36.91 kB / 278.2 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002703/0.009313, allocations: 181.3 kB / 278.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.281e-05/0.009345, allocations: 20.88 kB / 278.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.995e-05/0.009395, allocations: 24.33 kB / 278.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003586/0.009754, allocations: 200.7 kB / 278.6 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.009776, allocations: 4.172 kB / 278.6 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.009798, allocations: 16.38 kB / 278.6 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.009811, allocations: 11.88 kB / 278.6 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.009945, allocations: 55.95 kB / 278.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00107/0.01102, allocations: 0.8033 MB / 279.5 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002404/0.01126, allocations: 138.2 kB / 279.6 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.807e-05/0.01131, allocations: 43.36 kB / 279.6 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.01133, allocations: 8 kB / 279.6 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.01136, allocations: 38.48 kB / 279.7 MB, free: 10.87 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.833e-06/0.01137, allocations: 4 kB / 279.7 MB, free: 10.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003015/0.01167, allocations: 114.1 kB / 279.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.781e-05/0.01174, allocations: 132.5 kB / 279.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001491/0.01188, allocations: 190.9 kB / 280.1 MB, free: 10.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.0119, allocations: 29.7 kB / 280.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.413e-05/0.01199, allocations: 156.2 kB / 280.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.689e-05/0.01204, allocations: 71.41 kB / 280.4 MB, free: 10.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.554e-05/0.01212, allocations: 53.64 kB / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.01223, allocations: 334.7 kB / 280.7 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.19e-05/0.01228, allocations: 19.98 kB / 280.8 MB, free: 9.715 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.01241, allocations: 141.6 kB / 280.9 MB, free: 9.527 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002139/0.01262, allocations: 177.5 kB / 281.1 MB, free: 9.305 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.01263, allocations: 8 kB / 281.1 MB, free: 9.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002537/0.01288, allocations: 169.2 kB / 281.2 MB, free: 9.125 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.0129, allocations: 8 kB / 281.3 MB, free: 9.117 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.01291, allocations: 4 kB / 281.3 MB, free: 9.113 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.01292, allocations: 4 kB / 281.3 MB, free: 9.109 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002314/0.01315, allocations: 63.91 kB / 281.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.01316, allocations: 4 kB / 281.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.01329, allocations: 32.19 kB / 281.4 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.01331, allocations: 23.88 kB / 281.4 MB, free: 8.988 MB / 266.7 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 9.952e-05/0.01341, allocations: 121.8 kB / 281.5 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.023e-05/0.0135, allocations: 15.98 kB / 281.5 MB, free: 8.844 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.924e-05/0.01355, allocations: 25.02 kB / 281.5 MB, free: 8.816 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.01355, allocations: 4 kB / 281.5 MB, free: 8.812 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.01356, allocations: 0 / 281.5 MB, free: 8.812 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.01356, allocations: 0 / 281.5 MB, free: 8.812 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003632/0.01392, allocations: 137.6 kB / 281.7 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.01392, allocations: 0 / 281.7 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002214/0.01415, allocations: 51.97 kB / 281.7 MB, free: 8.609 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.01415, allocations: 4 kB / 281.7 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.01417, allocations: 8 kB / 281.7 MB, free: 8.598 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.01417, allocations: 7.875 kB / 281.8 MB, free: 8.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.01417, allocations: 4 kB / 281.8 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003281/0.0145, allocations: 452.6 kB / 282.2 MB, free: 8.129 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.976e-05/0.01453, allocations: 15.89 kB / 282.2 MB, free: 8.113 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.076e-05/0.01456, allocations: 12 kB / 282.2 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.01476, allocations: 8 kB / 282.2 MB, free: 8.094 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.35e-05/0.0148, allocations: 15.91 kB / 282.2 MB, free: 8.078 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.816e-06/0.01481, allocations: 8 kB / 282.3 MB, free: 8.07 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.906e-05/0.01487, allocations: 54 kB / 282.3 MB, free: 8.016 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01487, allocations: 0 / 282.3 MB, free: 8.016 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004345/0.0153, allocations: 59.89 kB / 282.4 MB, free: 7.957 MB / 266.7 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.0001003/0.01541, allocations: 84.41 kB / 282.4 MB, free: 7.867 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001884/0.01559, allocations: 105.2 kB / 282.6 MB, free: 7.762 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.0156, allocations: 4.125 kB / 282.6 MB, free: 7.758 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.188e-05/0.01566, allocations: 44.72 kB / 282.6 MB, free: 7.711 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005637/0.01623, allocations: 75.12 kB / 282.7 MB, free: 7.645 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.01724, allocations: 0.499 MB / 283.2 MB, free: 7.102 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.891e-05/0.01732, allocations: 80.33 kB / 283.3 MB, free: 7.004 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.418e-05/0.01742, allocations: 26.27 kB / 283.3 MB, free: 6.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.01756, allocations: 103.3 kB / 283.4 MB, free: 6.879 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01756, allocations: 4 kB / 283.4 MB, free: 6.875 MB / 266.7 MB Notification: Performance of Templates: time 0.006227/0.02379, allocations: 2.579 MB / 286 MB, free: 4.355 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9003194058313966]