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.002065/0.002065, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002829/0.002829, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.508/1.508, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.002517/0.002517, allocations: 51.92 kB / 373.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1051, allocations: 53.33 MB / 426.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.004865/0.11, allocations: 2.294 MB / 429.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001815/0.1118, allocations: 0.7557 MB / 429.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.1119, allocations: 7.938 kB / 429.8 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001854/0.1121, allocations: 39.59 kB / 429.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003305/0.1125, allocations: 91.31 kB / 430 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003599/0.1128, allocations: 103.8 kB / 430.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004125/0.1132, allocations: 298.6 kB / 430.4 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.1134, allocations: 44.38 kB / 430.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001625/0.1136, allocations: 119.5 kB / 430.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.1138, allocations: 111.5 kB / 430.6 MB, free: 440 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.288e-05/0.1138, allocations: 27.98 kB / 430.7 MB, free: 412 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.866e-05/0.1138, allocations: 20 kB / 430.7 MB, free: 392 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.694e-05/0.1139, allocations: 47.84 kB / 430.7 MB, free: 344 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001348/0.114, allocations: 127.3 kB / 430.9 MB, free: 216 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2233/0.3373, allocations: 264.3 kB / 431.1 MB, free: 8.676 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.141e-05/0.3374, allocations: 3.125 kB / 431.1 MB, free: 8.676 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.3374, allocations: 0 / 431.1 MB, free: 8.676 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.532e-05/0.3374, allocations: 0 / 431.1 MB, free: 8.676 MB / 350.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.001252/0.3386, allocations: 0.5206 MB / 431.6 MB, free: 8.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.3387, allocations: 10.55 kB / 431.6 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.3388, allocations: 31.44 kB / 431.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004215/0.3392, allocations: 258.5 kB / 431.9 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.516e-05/0.3393, allocations: 17.31 kB / 431.9 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-05/0.3393, allocations: 23.94 kB / 432 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006339/0.34, allocations: 240 kB / 432.2 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.385e-05/0.34, allocations: 9.391 kB / 432.2 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.548e-05/0.34, allocations: 9.938 kB / 432.2 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.34, allocations: 9.359 kB / 432.2 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006169/0.3407, allocations: 138.4 kB / 432.4 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.3426, allocations: 1.059 MB / 433.4 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006204/0.3432, allocations: 209.4 kB / 433.6 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.3434, allocations: 64.59 kB / 433.7 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.3434, allocations: 2.375 kB / 433.7 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/0.3434, allocations: 35.59 kB / 433.7 MB, free: 7.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.352e-06/0.3434, allocations: 0.75 kB / 433.7 MB, free: 7.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005829/0.344, allocations: 200.2 kB / 433.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.194e-05/0.344, allocations: 137.5 kB / 434.1 MB, free: 6.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.3442, allocations: 197.8 kB / 434.3 MB, free: 6.762 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.3442, allocations: 31.92 kB / 434.3 MB, free: 6.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.653e-05/0.3443, allocations: 164 kB / 434.4 MB, free: 6.605 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.96e-05/0.3443, allocations: 71.88 kB / 434.5 MB, free: 6.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.353e-05/0.3444, allocations: 49.22 kB / 434.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.065e-05/0.3444, allocations: 332 kB / 434.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.3446, allocations: 58.56 kB / 434.9 MB, free: 6.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001643/0.3447, allocations: 161.5 kB / 435.1 MB, free: 6.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003239/0.3451, allocations: 230.9 kB / 435.3 MB, free: 5.973 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.3451, allocations: 1.344 kB / 435.3 MB, free: 5.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004499/0.3455, allocations: 260 kB / 435.6 MB, free: 5.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.3455, allocations: 7.719 kB / 435.6 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.3455, allocations: 7.375 kB / 435.6 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.327e-05/0.3456, allocations: 5.938 kB / 435.6 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002666/0.3458, allocations: 64.95 kB / 435.7 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.3458, allocations: 11.84 kB / 435.7 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001557/0.346, allocations: 28.19 kB / 435.7 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.527e-05/0.346, allocations: 14.56 kB / 435.7 MB, free: 5.91 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.0001016/0.3461, allocations: 137 kB / 435.9 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.508e-05/0.3462, allocations: 25.97 kB / 435.9 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.532e-05/0.3463, allocations: 27.2 kB / 435.9 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.3463, allocations: 2.594 kB / 435.9 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.3463, allocations: 1.438 kB / 435.9 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3463, allocations: 2.125 kB / 435.9 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004523/0.3468, allocations: 274.4 kB / 436.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.3468, allocations: 0.9688 kB / 436.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002863/0.347, allocations: 52 kB / 436.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.347, allocations: 2.156 kB / 436.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.3471, allocations: 12.41 kB / 436.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.3471, allocations: 2.594 kB / 436.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3471, allocations: 1.844 kB / 436.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005712/0.3476, allocations: 0.5247 MB / 436.8 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.138e-05/0.3477, allocations: 98.86 kB / 436.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.658e-05/0.3477, allocations: 12.66 kB / 436.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.348, allocations: 3.875 kB / 436.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.382e-05/0.348, allocations: 14.84 kB / 436.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.348, allocations: 4.219 kB / 436.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001083/0.3481, allocations: 148.8 kB / 437.1 MB, free: 5.012 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3481, allocations: 6.844 kB / 437.1 MB, free: 5.012 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000475/0.3486, allocations: 63.97 kB / 437.1 MB, free: 5 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.0001113/0.3487, allocations: 106.3 kB / 437.2 MB, free: 4.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003797/0.3491, allocations: 155.9 kB / 437.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3491, allocations: 0 / 437.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000147/0.3493, allocations: 58.67 kB / 437.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000692/0.3499, allocations: 60.08 kB / 437.5 MB, free: 4.902 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.3514, allocations: 0.819 MB / 438.3 MB, free: 4.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002413/0.3516, allocations: 0.7462 MB / 439.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001073/0.3517, allocations: 26.56 kB / 439.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.307e-05/0.3518, allocations: 25.84 kB / 439.1 MB, free: 3.633 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3518, allocations: 0 / 439.1 MB, free: 3.633 MB / 350.1 MB Notification: Performance of Templates: time 0.006948/0.3587, allocations: 2.309 MB / 441.4 MB, free: 3.449 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.847778674215078]