Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001402/0.001402, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001564/0.001564, allocations: 213.2 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 230.5 MB / 257.4 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 59.89 kB / 378.2 MB, free: 2.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2447, allocations: 53.4 MB / 431.6 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.004015/0.2487, allocations: 2.153 MB / 433.8 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001699/0.2504, allocations: 0.7283 MB / 434.5 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003409/0.2507, allocations: 7.938 kB / 434.5 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001985/0.2509, allocations: 39.59 kB / 434.6 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003773/0.2513, allocations: 83.33 kB / 434.6 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004076/0.2517, allocations: 107.8 kB / 434.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004052/0.2521, allocations: 302.7 kB / 435 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.2523, allocations: 40.58 kB / 435.1 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.2524, allocations: 115.5 kB / 435.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001935/0.2526, allocations: 107.5 kB / 435.3 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.848e-05/0.2527, allocations: 20 kB / 435.3 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.005e-05/0.2527, allocations: 20 kB / 435.3 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.187e-05/0.2528, allocations: 51.78 kB / 435.4 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.2529, allocations: 111.5 kB / 435.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003331/0.2532, allocations: 260.2 kB / 435.7 MB, free: 2.422 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.2532, allocations: 4 kB / 435.7 MB, free: 2.418 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2532, allocations: 0 / 435.7 MB, free: 2.418 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.2532, allocations: 4 kB / 435.8 MB, free: 2.414 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.0008922/0.2541, allocations: 465.5 kB / 436.2 MB, free: 1.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.2542, allocations: 11.98 kB / 436.2 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.309e-05/0.2542, allocations: 32.75 kB / 436.2 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004272/0.2547, allocations: 186.9 kB / 436.4 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.926e-05/0.2547, allocations: 16.81 kB / 436.4 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.987e-05/0.2547, allocations: 24.38 kB / 436.5 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004588/0.2552, allocations: 246.9 kB / 436.7 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.484e-05/0.2552, allocations: 7.953 kB / 436.7 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.2553, allocations: 8 kB / 436.7 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.2553, allocations: 8 kB / 436.7 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003549/0.2556, allocations: 135.8 kB / 436.9 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/0.257, allocations: 0.9079 MB / 437.8 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004671/0.2575, allocations: 206.3 kB / 438 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.2577, allocations: 63.48 kB / 438 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.2577, allocations: 8 kB / 438 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.2577, allocations: 34.56 kB / 438.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.403e-06/0.2577, allocations: 0 / 438.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006337/0.2583, allocations: 201.7 kB / 438.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.99e-05/0.2584, allocations: 140.5 kB / 438.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002107/0.2586, allocations: 195.2 kB / 438.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.2587, allocations: 29.7 kB / 438.6 MB, free: 15.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.2588, allocations: 168.2 kB / 438.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.564e-05/0.2589, allocations: 75.41 kB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.737e-05/0.2589, allocations: 53.64 kB / 438.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.2591, allocations: 330.8 kB / 439.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001515/0.2592, allocations: 55.95 kB / 439.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002271/0.2595, allocations: 157.7 kB / 439.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003974/0.2599, allocations: 241.5 kB / 439.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.2599, allocations: 4 kB / 439.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004966/0.2604, allocations: 257.2 kB / 439.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.2604, allocations: 4 kB / 440 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.2604, allocations: 4 kB / 440 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.2604, allocations: 12.31 kB / 440 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002761/0.2607, allocations: 67.91 kB / 440 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.2607, allocations: 11.92 kB / 440 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001564/0.2609, allocations: 23.83 kB / 440.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.2609, allocations: 16 kB / 440.1 MB, free: 13.7 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.0001327/0.261, allocations: 133.8 kB / 440.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.904e-05/0.2611, allocations: 19.86 kB / 440.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.593e-05/0.2612, allocations: 28.95 kB / 440.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.2612, allocations: 4 kB / 440.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2612, allocations: 0 / 440.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.2612, allocations: 4 kB / 440.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004022/0.2616, allocations: 193.4 kB / 440.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.2616, allocations: 0 / 440.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002883/0.2619, allocations: 59.91 kB / 440.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.2619, allocations: 4 kB / 440.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.2619, allocations: 0 / 440.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.825e-06/0.2619, allocations: 7.938 kB / 440.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2619, allocations: 0 / 440.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006644/0.2626, allocations: 0.5236 MB / 441.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.024e-05/0.2626, allocations: 15.86 kB / 441.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.541e-05/0.2626, allocations: 19.88 kB / 441.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.2629, allocations: 7.984 kB / 441.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.513e-05/0.2629, allocations: 11.98 kB / 441.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.2629, allocations: 7.984 kB / 441.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001318/0.2631, allocations: 136.5 kB / 441.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2631, allocations: 3.938 kB / 441.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004739/0.2635, allocations: 63.89 kB / 441.3 MB, free: 12.42 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.0001197/0.2637, allocations: 106 kB / 441.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003791/0.264, allocations: 150.9 kB / 441.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.264, allocations: 7.938 kB / 441.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001569/0.2642, allocations: 68.5 kB / 441.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006958/0.2649, allocations: 63.81 kB / 441.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/0.2664, allocations: 0.8234 MB / 442.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001559/0.2665, allocations: 138.2 kB / 442.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.2666, allocations: 22.28 kB / 442.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.422e-05/0.2667, allocations: 19.44 kB / 442.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2667, allocations: 4 kB / 442.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of Templates: time 0.006657/0.2733, allocations: 2.645 MB / 445.4 MB, free: 8.367 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.813919879496098]