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.001315/0.001315, allocations: 76.28 kB / 21.24 MB, free: 0.5469 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.001366/0.001366, allocations: 160.4 kB / 24.5 MB, free: 3.719 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.411/1.411, allocations: 177.2 MB / 204.9 MB, free: 9.012 MB / 190.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.00165/0.00165, allocations: 51.89 kB / 325.6 MB, free: 444 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09167/0.09332, allocations: 53.33 MB / 378.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003586/0.09691, allocations: 2.151 MB / 381 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00147/0.09838, allocations: 0.7284 MB / 381.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.09852, allocations: 7.938 kB / 381.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001456/0.09867, allocations: 35.59 kB / 381.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002782/0.09895, allocations: 83.33 kB / 381.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003471/0.09929, allocations: 119.7 kB / 382 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000372/0.09967, allocations: 294.7 kB / 382.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.09981, allocations: 44.56 kB / 382.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.09997, allocations: 107.6 kB / 382.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.1002, allocations: 111.4 kB / 382.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.641e-05/0.1002, allocations: 20 kB / 382.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.026e-05/0.1002, allocations: 20 kB / 382.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.631e-05/0.1003, allocations: 55.77 kB / 382.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.1004, allocations: 107.5 kB / 382.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003175/0.1007, allocations: 266.8 kB / 383 MB, free: 11.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1007, allocations: 4 kB / 383 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1007, allocations: 0 / 383 MB, free: 11.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.1007, allocations: 0 / 383 MB, free: 11.64 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.0008168/0.1016, allocations: 461.7 kB / 383.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.1016, allocations: 8.031 kB / 383.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.501e-05/0.1017, allocations: 32.75 kB / 383.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003496/0.102, allocations: 202 kB / 383.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.102, allocations: 20.86 kB / 383.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.058e-05/0.1021, allocations: 24.38 kB / 383.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004406/0.1025, allocations: 231.8 kB / 384 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/0.1026, allocations: 11.89 kB / 384 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.1026, allocations: 8 kB / 384 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.1026, allocations: 8 kB / 384 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003483/0.1029, allocations: 135.9 kB / 384.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0014/0.1043, allocations: 0.9202 MB / 385.1 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004748/0.1048, allocations: 202.4 kB / 385.3 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.105, allocations: 71.42 kB / 385.3 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.105, allocations: 4 kB / 385.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.105, allocations: 38.56 kB / 385.4 MB, free: 9.102 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.503e-06/0.105, allocations: 0 / 385.4 MB, free: 9.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005941/0.1056, allocations: 205.3 kB / 385.6 MB, free: 8.895 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.411e-05/0.1057, allocations: 136.5 kB / 385.7 MB, free: 8.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002021/0.1059, allocations: 191.2 kB / 385.9 MB, free: 8.531 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.154e-05/0.1059, allocations: 29.7 kB / 385.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.106, allocations: 168.2 kB / 386.1 MB, free: 8.324 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.285e-05/0.1061, allocations: 71.42 kB / 386.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.834e-05/0.1062, allocations: 53.69 kB / 386.2 MB, free: 8.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.1063, allocations: 330.8 kB / 386.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.1065, allocations: 51.97 kB / 386.6 MB, free: 7.812 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.1067, allocations: 161.6 kB / 386.7 MB, free: 7.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/0.1071, allocations: 233.5 kB / 387 MB, free: 7.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.1071, allocations: 7.938 kB / 387 MB, free: 7.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005068/0.1076, allocations: 261.1 kB / 387.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.1076, allocations: 4.375 kB / 387.2 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.1076, allocations: 8 kB / 387.2 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.189e-05/0.1077, allocations: 11.94 kB / 387.2 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002791/0.108, allocations: 63.91 kB / 387.3 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.108, allocations: 7.984 kB / 387.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.1081, allocations: 19.89 kB / 387.3 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.447e-05/0.1081, allocations: 16 kB / 387.4 MB, free: 6.93 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.0001245/0.1083, allocations: 141.7 kB / 387.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.73e-05/0.1084, allocations: 19.86 kB / 387.5 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.393e-05/0.1084, allocations: 28.95 kB / 387.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.1084, allocations: 8 kB / 387.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.1084, allocations: 0 / 387.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.1084, allocations: 4 kB / 387.5 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003923/0.1088, allocations: 189.2 kB / 387.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1088, allocations: 0 / 387.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000292/0.1091, allocations: 47.97 kB / 387.8 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.289e-06/0.1091, allocations: 4 kB / 387.8 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.1091, allocations: 4 kB / 387.8 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.297e-06/0.1091, allocations: 7.938 kB / 387.8 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.1092, allocations: 3.938 kB / 387.8 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006356/0.1098, allocations: 0.5246 MB / 388.3 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.555e-05/0.1098, allocations: 19.8 kB / 388.3 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.474e-05/0.1099, allocations: 12.19 kB / 388.4 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002347/0.1101, allocations: 11.98 kB / 388.4 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.599e-05/0.1101, allocations: 11.98 kB / 388.4 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.1102, allocations: 11.92 kB / 388.4 MB, free: 5.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001326/0.1103, allocations: 140.5 kB / 388.5 MB, free: 5.695 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1103, allocations: 3.938 kB / 388.5 MB, free: 5.691 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004685/0.1108, allocations: 63.89 kB / 388.6 MB, free: 5.629 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.0001157/0.1109, allocations: 104 kB / 388.7 MB, free: 5.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003819/0.1112, allocations: 139.8 kB / 388.8 MB, free: 5.383 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1113, allocations: 0 / 388.8 MB, free: 5.383 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.1114, allocations: 72.77 kB / 388.9 MB, free: 5.312 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007027/0.1121, allocations: 67.95 kB / 389 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.1135, allocations: 0.8154 MB / 389.8 MB, free: 4.395 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000162/0.1137, allocations: 138.2 kB / 389.9 MB, free: 4.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.889e-05/0.1138, allocations: 22.28 kB / 389.9 MB, free: 4.219 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.45e-05/0.1139, allocations: 24.5 kB / 390 MB, free: 4.195 MB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1139, allocations: 0 / 390 MB, free: 4.195 MB / 350.1 MB Notification: Performance of Templates: time 0.006212/0.1201, allocations: 2.369 MB / 392.3 MB, free: 1.867 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 ida -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.457932865945622]