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.001809/0.001809, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002293/0.002293, allocations: 211.2 kB / 24.47 MB, free: 3.977 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.458/1.458, allocations: 230.6 MB / 258.2 MB, free: 7.809 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.001607/0.001607, allocations: 43.92 kB / 378.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.2294, allocations: 53.37 MB / 432.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.00375/0.2331, allocations: 2.153 MB / 434.5 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.2347, allocations: 0.7206 MB / 435.2 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001521/0.2348, allocations: 7.938 kB / 435.2 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001541/0.235, allocations: 39.64 kB / 435.2 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000292/0.2353, allocations: 95.25 kB / 435.3 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003533/0.2356, allocations: 107.8 kB / 435.4 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003524/0.236, allocations: 294.6 kB / 435.7 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.2361, allocations: 48.23 kB / 435.8 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.2363, allocations: 115.6 kB / 435.9 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001824/0.2365, allocations: 123.4 kB / 436 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.835e-05/0.2365, allocations: 16 kB / 436 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.392e-05/0.2365, allocations: 20 kB / 436 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.314e-05/0.2366, allocations: 51.83 kB / 436.1 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.2367, allocations: 99.53 kB / 436.2 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003193/0.2371, allocations: 273.8 kB / 436.5 MB, free: 2.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2371, allocations: 0 / 436.5 MB, free: 2.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2371, allocations: 0 / 436.5 MB, free: 2.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.2371, allocations: 3.938 kB / 436.5 MB, free: 2.586 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.0008331/0.2379, allocations: 461.5 kB / 436.9 MB, free: 2.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2379, allocations: 12.03 kB / 436.9 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.504e-05/0.238, allocations: 28.75 kB / 436.9 MB, free: 2.066 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003432/0.2383, allocations: 198.8 kB / 437.1 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.2384, allocations: 16.81 kB / 437.2 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.327e-05/0.2384, allocations: 28.36 kB / 437.2 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004553/0.2389, allocations: 231 kB / 437.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.5e-05/0.2389, allocations: 7.953 kB / 437.4 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.2389, allocations: 12 kB / 437.4 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-06/0.2389, allocations: 8 kB / 437.4 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003502/0.2393, allocations: 135.8 kB / 437.6 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.2407, allocations: 0.9234 MB / 438.5 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004818/0.2412, allocations: 202.4 kB / 438.7 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.2413, allocations: 59.47 kB / 438.8 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.2414, allocations: 11.92 kB / 438.8 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.2414, allocations: 42.5 kB / 438.8 MB, free: 48 kB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.342e-06/0.2414, allocations: 0 / 438.8 MB, free: 48 kB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006033/0.242, allocations: 197.3 kB / 439 MB, free: 15.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.512e-05/0.2421, allocations: 132.5 kB / 439.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.2423, allocations: 199.1 kB / 439.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.2423, allocations: 25.7 kB / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.2424, allocations: 172.2 kB / 439.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.515e-05/0.2425, allocations: 67.42 kB / 439.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.803e-05/0.2426, allocations: 49.7 kB / 439.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.2427, allocations: 334.8 kB / 440 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.2429, allocations: 55.95 kB / 440 MB, free: 14.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.2431, allocations: 157.6 kB / 440.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004301/0.2435, allocations: 233.5 kB / 440.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.2435, allocations: 8 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005336/0.2441, allocations: 261.1 kB / 440.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.2441, allocations: 8.312 kB / 440.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.2441, allocations: 8 kB / 440.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/0.2441, allocations: 11.94 kB / 440.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002859/0.2444, allocations: 67.91 kB / 440.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.2444, allocations: 4 kB / 440.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001583/0.2446, allocations: 27.81 kB / 440.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.2446, allocations: 12 kB / 440.8 MB, free: 13.88 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.0001295/0.2447, allocations: 137.8 kB / 440.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.525e-05/0.2448, allocations: 19.86 kB / 440.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.193e-05/0.2449, allocations: 24.95 kB / 441 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.2449, allocations: 8 kB / 441 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2449, allocations: 0 / 441 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.2449, allocations: 8.688 kB / 441 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003864/0.2453, allocations: 189.2 kB / 441.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2453, allocations: 0 / 441.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003058/0.2456, allocations: 47.97 kB / 441.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.2456, allocations: 4 kB / 441.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.2456, allocations: 7.984 kB / 441.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.2456, allocations: 7.938 kB / 441.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2456, allocations: 0 / 441.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006691/0.2463, allocations: 0.5332 MB / 441.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.495e-05/0.2463, allocations: 19.84 kB / 441.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.726e-05/0.2464, allocations: 11.94 kB / 441.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.2466, allocations: 8 kB / 441.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.425e-05/0.2466, allocations: 11.97 kB / 441.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.2467, allocations: 8 kB / 441.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001291/0.2468, allocations: 144.4 kB / 442 MB, free: 12.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2468, allocations: 0 / 442 MB, free: 12.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004537/0.2472, allocations: 59.89 kB / 442 MB, free: 12.59 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.0001082/0.2473, allocations: 107.2 kB / 442.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003815/0.2477, allocations: 155.8 kB / 442.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2477, allocations: 0 / 442.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001675/0.2479, allocations: 60.66 kB / 442.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006971/0.2486, allocations: 63.3 kB / 442.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.2501, allocations: 0.8237 MB / 443.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001948/0.2503, allocations: 138.2 kB / 443.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.346e-05/0.2504, allocations: 26.28 kB / 443.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.619e-05/0.2504, allocations: 31.42 kB / 443.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2504, allocations: 0 / 443.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of Templates: time 0.006399/0.2568, allocations: 2.705 MB / 446.1 MB, free: 8.469 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CompareBrakingTorque/CompareBrakingTorque.csv","/var/lib/jenkins1/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.488998300003004]