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.001107/0.001107, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00179/0.002897, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001222/0.001222, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001532/0.002754, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9354/0.9354, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07469/1.01, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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 1.373e-06/1.373e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.675e-05/1.813e-05, allocations: 2.312 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003239/0.003258, allocations: 2.338 MB / 246.9 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001299/0.004557, allocations: 0.7591 MB / 247.6 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.004678, allocations: 7.938 kB / 247.6 MB, free: 11.19 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.098e-05/0.004769, allocations: 43.58 kB / 247.7 MB, free: 11.14 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002213/0.00499, allocations: 87.2 kB / 247.8 MB, free: 11.06 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002807/0.005271, allocations: 107.7 kB / 247.9 MB, free: 10.95 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003065/0.005577, allocations: 310.5 kB / 248.2 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.005701, allocations: 53.22 kB / 248.2 MB, free: 10.6 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002767/0.005978, allocations: 179.5 kB / 248.4 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.006131, allocations: 95.7 kB / 248.5 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.593e-05/0.006167, allocations: 20 kB / 248.5 MB, free: 10.31 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.257e-05/0.0062, allocations: 20 kB / 248.5 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.852e-05/0.006238, allocations: 35.81 kB / 248.6 MB, free: 10.26 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.39e-05/0.006322, allocations: 71.88 kB / 248.6 MB, free: 10.19 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002332/0.006555, allocations: 171.3 kB / 248.8 MB, free: 10.02 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.399e-05/0.006569, allocations: 4 kB / 248.8 MB, free: 10.02 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.00657, allocations: 0 / 248.8 MB, free: 10.02 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.491e-05/0.006585, allocations: 0 / 248.8 MB, free: 10.02 MB / 250.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.0006218/0.007207, allocations: 491.8 kB / 249.3 MB, free: 9.512 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.007241, allocations: 12.03 kB / 249.3 MB, free: 9.5 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.441e-05/0.007295, allocations: 36.91 kB / 249.3 MB, free: 9.465 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002179/0.007513, allocations: 177.3 kB / 249.5 MB, free: 9.266 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.007539, allocations: 16.88 kB / 249.5 MB, free: 9.25 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.028e-05/0.007579, allocations: 28.33 kB / 249.5 MB, free: 9.223 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002554/0.007834, allocations: 192.7 kB / 249.7 MB, free: 9.012 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.007853, allocations: 12.16 kB / 249.7 MB, free: 9 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.007868, allocations: 8.375 kB / 249.8 MB, free: 8.992 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.007877, allocations: 11.94 kB / 249.8 MB, free: 8.98 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001108/0.007988, allocations: 67.89 kB / 249.8 MB, free: 8.914 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009891/0.008977, allocations: 0.7875 MB / 250.6 MB, free: 8.07 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001636/0.00914, allocations: 146.2 kB / 250.8 MB, free: 7.891 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.626e-05/0.009177, allocations: 43.42 kB / 250.8 MB, free: 7.836 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.009191, allocations: 4 kB / 250.8 MB, free: 7.832 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.009212, allocations: 46.5 kB / 250.9 MB, free: 7.777 MB / 250.7 MB Notification: Performance of pre-optimization done (n=16): time 1.493e-06/0.009213, allocations: 0 / 250.9 MB, free: 7.777 MB / 250.7 MB Notification: Performance of matching and sorting (n=16): time 0.0001795/0.009393, allocations: 109.6 kB / 251 MB, free: 7.664 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.009436, allocations: 132.5 kB / 251.1 MB, free: 7.504 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.218e-05/0.009528, allocations: 190.3 kB / 251.3 MB, free: 7.305 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.009539, allocations: 25.7 kB / 251.3 MB, free: 7.273 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.544e-05/0.009595, allocations: 160.2 kB / 251.5 MB, free: 7.113 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.546e-05/0.00963, allocations: 63.42 kB / 251.5 MB, free: 7.051 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.686e-05/0.009677, allocations: 57.64 kB / 251.6 MB, free: 6.988 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.486e-05/0.009752, allocations: 338.7 kB / 251.9 MB, free: 6.648 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.729e-05/0.009779, allocations: 27.92 kB / 251.9 MB, free: 6.621 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.131e-05/0.00985, allocations: 129.2 kB / 252.1 MB, free: 6.449 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001259/0.009976, allocations: 185.4 kB / 252.2 MB, free: 6.219 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.00998, allocations: 4 kB / 252.2 MB, free: 6.215 MB / 250.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000157/0.01014, allocations: 165.4 kB / 252.4 MB, free: 6.047 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.01015, allocations: 11.34 kB / 252.4 MB, free: 6.039 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.01016, allocations: 8 kB / 252.4 MB, free: 6.031 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.01017, allocations: 4 kB / 252.4 MB, free: 6.027 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002133/0.01038, allocations: 84.64 kB / 252.5 MB, free: 5.945 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.01039, allocations: 7.938 kB / 252.5 MB, free: 5.938 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.172e-05/0.01046, allocations: 31.81 kB / 252.5 MB, free: 5.906 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.01047, allocations: 12 kB / 252.6 MB, free: 5.895 MB / 250.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 6.801e-05/0.01054, allocations: 125.7 kB / 252.7 MB, free: 5.762 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.725e-05/0.01059, allocations: 15.98 kB / 252.7 MB, free: 5.746 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.899e-05/0.01062, allocations: 25.02 kB / 252.7 MB, free: 5.723 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.01062, allocations: 8 kB / 252.7 MB, free: 5.715 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.01062, allocations: 7.922 kB / 252.7 MB, free: 5.707 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.01063, allocations: 0 / 252.7 MB, free: 5.707 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002163/0.01084, allocations: 134.2 kB / 252.9 MB, free: 5.559 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.01085, allocations: 0 / 252.9 MB, free: 5.559 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001608/0.01101, allocations: 63.95 kB / 252.9 MB, free: 5.496 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.679e-05/0.01102, allocations: 15.91 kB / 252.9 MB, free: 5.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.01103, allocations: 0 / 252.9 MB, free: 5.48 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.01104, allocations: 8 kB / 253 MB, free: 5.473 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.01104, allocations: 3.938 kB / 253 MB, free: 5.469 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.01104, allocations: 7.938 kB / 253 MB, free: 5.461 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002079/0.01125, allocations: 449.2 kB / 253.4 MB, free: 5.004 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.89e-05/0.01127, allocations: 8 kB / 253.4 MB, free: 4.996 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.01138, allocations: 11.94 kB / 253.4 MB, free: 4.984 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.924e-05/0.01141, allocations: 11.97 kB / 253.4 MB, free: 4.973 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-06/0.01141, allocations: 4 kB / 253.4 MB, free: 4.969 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002538/0.01167, allocations: 56.73 kB / 253.5 MB, free: 4.91 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01167, allocations: 0 / 253.5 MB, free: 4.91 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002568/0.01192, allocations: 67.83 kB / 253.6 MB, free: 4.844 MB / 250.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 7.754e-05/0.012, allocations: 84.41 kB / 253.6 MB, free: 4.754 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001298/0.01213, allocations: 109 kB / 253.8 MB, free: 4.645 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.523e-06/0.01214, allocations: 4 kB / 253.8 MB, free: 4.641 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.168e-05/0.01218, allocations: 44.72 kB / 253.8 MB, free: 4.594 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003662/0.01254, allocations: 83.89 kB / 253.9 MB, free: 4.516 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002579/0.01512, allocations: 0.5 MB / 254.4 MB, free: 3.977 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.734e-05/0.01518, allocations: 88.31 kB / 254.5 MB, free: 3.871 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.743e-05/0.01525, allocations: 34.58 kB / 254.5 MB, free: 3.84 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.96e-05/0.01535, allocations: 95.34 kB / 254.6 MB, free: 3.746 MB / 250.7 MB Notification: Performance of SimCode: time 6.72e-07/0.01535, allocations: 0 / 254.6 MB, free: 3.746 MB / 250.7 MB Notification: Performance of Templates: time 0.004516/0.01987, allocations: 2.856 MB / 257.5 MB, free: 0.9648 MB / 250.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 -ignoreHideResult -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.6406465861946344]