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.001834/0.001834, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002388/0.002388, allocations: 209 kB / 23.73 MB, free: 4.523 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.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001608/0.001608, allocations: 51.92 kB / 378.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.242, allocations: 53.36 MB / 431.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003583/0.2456, allocations: 2.149 MB / 433.7 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.247, allocations: 0.7284 MB / 434.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.2471, allocations: 7.938 kB / 434.5 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.2473, allocations: 39.59 kB / 434.5 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002742/0.2475, allocations: 87.33 kB / 434.6 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.2479, allocations: 115.7 kB / 434.7 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003489/0.2482, allocations: 294.6 kB / 435 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.2484, allocations: 44.58 kB / 435 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001356/0.2485, allocations: 115.6 kB / 435.1 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.2487, allocations: 123.4 kB / 435.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.65e-05/0.2487, allocations: 20 kB / 435.3 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.676e-05/0.2488, allocations: 20 kB / 435.3 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.958e-05/0.2488, allocations: 43.84 kB / 435.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.2489, allocations: 115.5 kB / 435.4 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003234/0.2493, allocations: 261.1 kB / 435.7 MB, free: 2.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2493, allocations: 0 / 435.7 MB, free: 2.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2493, allocations: 0 / 435.7 MB, free: 2.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.2493, allocations: 0 / 435.7 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.0008153/0.2501, allocations: 465.5 kB / 436.2 MB, free: 2.066 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.2501, allocations: 8.031 kB / 436.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.877e-05/0.2502, allocations: 32.75 kB / 436.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003568/0.2506, allocations: 202.8 kB / 436.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.2506, allocations: 16.81 kB / 436.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.58e-05/0.2506, allocations: 20.38 kB / 436.4 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004361/0.2511, allocations: 235 kB / 436.7 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.2511, allocations: 15.88 kB / 436.7 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/0.2511, allocations: 8 kB / 436.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.2511, allocations: 8 kB / 436.7 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003518/0.2515, allocations: 135.8 kB / 436.8 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001467/0.2529, allocations: 0.9079 MB / 437.7 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004674/0.2534, allocations: 202.4 kB / 437.9 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.2536, allocations: 71.42 kB / 438 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.2536, allocations: 7.938 kB / 438 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.2536, allocations: 38.56 kB / 438 MB, free: 16 kB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.684e-06/0.2536, allocations: 3.938 kB / 438.1 MB, free: 12 kB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005959/0.2542, allocations: 201.4 kB / 438.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.484e-05/0.2543, allocations: 132.5 kB / 438.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.2545, allocations: 199.1 kB / 438.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.2545, allocations: 25.7 kB / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.2547, allocations: 168.2 kB / 438.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.853e-05/0.2547, allocations: 71.33 kB / 438.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.342e-05/0.2548, allocations: 45.7 kB / 438.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.255, allocations: 330.8 kB / 439.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.2551, allocations: 63.89 kB / 439.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002363/0.2553, allocations: 157.7 kB / 439.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003945/0.2557, allocations: 237.5 kB / 439.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2557, allocations: 3.938 kB / 439.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004905/0.2562, allocations: 261.7 kB / 439.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.2562, allocations: 8 kB / 439.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.2563, allocations: 4 kB / 439.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.2563, allocations: 7.938 kB / 439.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002819/0.2566, allocations: 71.89 kB / 440 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.2566, allocations: 11.94 kB / 440 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001405/0.2567, allocations: 23.83 kB / 440 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/0.2567, allocations: 12 kB / 440 MB, free: 13.84 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.0001318/0.2569, allocations: 137.8 kB / 440.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.257, allocations: 27.91 kB / 440.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.017e-05/0.257, allocations: 20.97 kB / 440.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/0.257, allocations: 4 kB / 440.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.257, allocations: 0 / 440.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.257, allocations: 3.984 kB / 440.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003976/0.2574, allocations: 189.2 kB / 440.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2574, allocations: 0 / 440.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002785/0.2577, allocations: 51.97 kB / 440.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.2577, allocations: 0 / 440.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.2577, allocations: 8 kB / 440.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.817e-06/0.2577, allocations: 11.88 kB / 440.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2577, allocations: 7.938 kB / 440.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006464/0.2584, allocations: 0.521 MB / 441 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.626e-05/0.2584, allocations: 19.86 kB / 441 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.719e-05/0.2585, allocations: 11.92 kB / 441 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002173/0.2587, allocations: 8 kB / 441.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.289e-05/0.2587, allocations: 15.91 kB / 441.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.2588, allocations: 11.98 kB / 441.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001342/0.2589, allocations: 136.5 kB / 441.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2589, allocations: 4 kB / 441.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004619/0.2593, allocations: 63.83 kB / 441.3 MB, free: 12.54 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.0001273/0.2595, allocations: 105.8 kB / 441.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000394/0.2599, allocations: 156.2 kB / 441.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2599, allocations: 0.75 kB / 441.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001519/0.26, allocations: 67.84 kB / 441.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006887/0.2607, allocations: 59.03 kB / 441.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001429/0.2621, allocations: 0.8115 MB / 442.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001517/0.2623, allocations: 138.2 kB / 442.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001008/0.2624, allocations: 30.27 kB / 442.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.573e-05/0.2625, allocations: 23.44 kB / 442.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2625, allocations: 4 kB / 442.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of Templates: time 0.006647/0.2691, allocations: 2.701 MB / 445.4 MB, free: 8.438 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.987612497061491]