Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001069/0.001069, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 226.5 MB / 243.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008482/0.000848, allocations: 90.53 kB / 295.5 MB, free: 6.926 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3193/0.3193, allocations: 44.83 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002437/0.0002438, allocations: 11.98 kB / 465.3 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.301, allocations: 62.96 MB / 0.5159 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.002282/0.3033, allocations: 2.511 MB / 0.5183 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001279/0.3046, allocations: 1.005 MB / 0.5193 GB, free: 34.48 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.3048, allocations: 5.938 kB / 0.5193 GB, free: 34.48 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.3049, allocations: 46.19 kB / 0.5193 GB, free: 34.45 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001499/0.3051, allocations: 110.5 kB / 0.5195 GB, free: 34.38 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00036/0.3054, allocations: 135.2 kB / 0.5196 GB, free: 34.3 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002922/0.3057, allocations: 416.5 kB / 0.52 GB, free: 34.09 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001638/0.3059, allocations: 94.8 kB / 0.5201 GB, free: 34.04 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001169/0.306, allocations: 144.3 kB / 0.5202 GB, free: 33.98 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.3062, allocations: 152 kB / 0.5204 GB, free: 33.91 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.279e-05/0.3062, allocations: 17.38 kB / 0.5204 GB, free: 33.91 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.3063, allocations: 35.31 kB / 0.5204 GB, free: 33.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.731e-05/0.3064, allocations: 57.8 kB / 0.5205 GB, free: 33.88 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.3065, allocations: 198.7 kB / 0.5206 GB, free: 33.75 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002512/0.3068, allocations: 302.2 kB / 0.5209 GB, free: 33.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3068, allocations: 2.938 kB / 0.5209 GB, free: 33.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3068, allocations: 4 kB / 0.5209 GB, free: 33.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.3068, allocations: 3.938 kB / 0.5209 GB, free: 33.67 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0007389/0.3075, allocations: 0.5822 MB / 0.5215 GB, free: 33.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.3076, allocations: 8.406 kB / 0.5215 GB, free: 33.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002523/0.3078, allocations: 67.03 kB / 0.5216 GB, free: 33.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002579/0.3081, allocations: 281.3 kB / 0.5219 GB, free: 32.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.3081, allocations: 31.53 kB / 0.5219 GB, free: 32.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.355e-05/0.3082, allocations: 38.75 kB / 0.5219 GB, free: 32.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004941/0.3087, allocations: 359.6 kB / 0.5223 GB, free: 32.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.3087, allocations: 6.906 kB / 0.5223 GB, free: 32.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.955e-05/0.3088, allocations: 14.84 kB / 0.5223 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.3088, allocations: 12.47 kB / 0.5223 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003687/0.3092, allocations: 229 kB / 0.5225 GB, free: 32.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.3109, allocations: 1.575 MB / 0.5241 GB, free: 31.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004589/0.3114, allocations: 316.3 kB / 0.5244 GB, free: 31.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.3115, allocations: 104.5 kB / 0.5245 GB, free: 31.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.3115, allocations: 2.719 kB / 0.5245 GB, free: 31.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.3116, allocations: 41.31 kB / 0.5245 GB, free: 31.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 2.034e-06/0.3116, allocations: 0 / 0.5245 GB, free: 31.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.0005901/0.3122, allocations: 277.5 kB / 0.5248 GB, free: 30.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.738e-05/0.3122, allocations: 192.8 kB / 0.5249 GB, free: 30.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001719/0.3124, allocations: 224.4 kB / 0.5252 GB, free: 30.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.3124, allocations: 35.58 kB / 0.5252 GB, free: 30.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.226e-05/0.3125, allocations: 210.5 kB / 0.5254 GB, free: 30.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.947e-05/0.3126, allocations: 112.3 kB / 0.5255 GB, free: 30.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.291e-05/0.3126, allocations: 11.25 kB / 0.5255 GB, free: 30.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.352e-05/0.3127, allocations: 340.2 kB / 0.5258 GB, free: 29.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.3128, allocations: 88.17 kB / 0.5259 GB, free: 29.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.3131, allocations: 244.1 kB / 0.5262 GB, free: 29.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003787/0.3134, allocations: 365.3 kB / 0.5265 GB, free: 29.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.3135, allocations: 2.406 kB / 0.5265 GB, free: 29.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00052/0.314, allocations: 382.6 kB / 0.5269 GB, free: 29.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.314, allocations: 5.875 kB / 0.5269 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.314, allocations: 5.562 kB / 0.5269 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.314, allocations: 8.875 kB / 0.5269 GB, free: 29.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003148/0.3144, allocations: 114.6 kB / 0.527 GB, free: 29.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.3144, allocations: 7.75 kB / 0.527 GB, free: 29.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002037/0.3146, allocations: 50.95 kB / 0.5271 GB, free: 29.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/0.3146, allocations: 20.16 kB / 0.5271 GB, free: 29.09 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001138/0.3147, allocations: 150.4 kB / 0.5272 GB, free: 28.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.3149, allocations: 29.5 kB / 0.5272 GB, free: 28.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001464/0.315, allocations: 99.27 kB / 0.5273 GB, free: 28.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.315, allocations: 6.812 kB / 0.5273 GB, free: 28.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.315, allocations: 2.938 kB / 0.5273 GB, free: 28.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.3151, allocations: 10.2 kB / 0.5274 GB, free: 28.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005736/0.3156, allocations: 343 kB / 0.5277 GB, free: 28.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.3157, allocations: 0 / 0.5277 GB, free: 28.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003666/0.316, allocations: 87.45 kB / 0.5278 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.316, allocations: 3 kB / 0.5278 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.3161, allocations: 7 kB / 0.5278 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.92e-06/0.3161, allocations: 6.078 kB / 0.5278 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3161, allocations: 0 / 0.5278 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006161/0.3167, allocations: 0.7749 MB / 0.5285 GB, free: 27.97 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.917e-05/0.3168, allocations: 101.6 kB / 0.5286 GB, free: 27.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.24e-05/0.3168, allocations: 13.17 kB / 0.5286 GB, free: 27.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002872/0.3171, allocations: 9.844 kB / 0.5287 GB, free: 27.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.635e-05/0.3172, allocations: 23.62 kB / 0.5287 GB, free: 27.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.3172, allocations: 9.656 kB / 0.5287 GB, free: 27.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001053/0.3173, allocations: 163.6 kB / 0.5288 GB, free: 27.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3173, allocations: 2.969 kB / 0.5288 GB, free: 27.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005626/0.3179, allocations: 103.9 kB / 0.5289 GB, free: 27.71 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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 (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.929e-05/0.318, allocations: 104.1 kB / 0.529 GB, free: 27.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003907/0.3184, allocations: 234.1 kB / 0.5293 GB, free: 27.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3184, allocations: 0 / 0.5293 GB, free: 27.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001436/0.3185, allocations: 97.7 kB / 0.5294 GB, free: 27.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008518/0.3194, allocations: 63.28 kB / 0.5294 GB, free: 27.49 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/0.321, allocations: 1.633 MB / 0.531 GB, free: 26.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001931/0.3212, allocations: 0.7893 MB / 0.5318 GB, free: 25.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.016e-05/0.3213, allocations: 31.44 kB / 0.5318 GB, free: 25.59 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3213, allocations: 0 / 0.5318 GB, free: 25.59 MB / 378.7 MB Notification: Performance of Templates: time 0.004758/0.326, allocations: 3.944 MB / 0.5357 GB, free: 25.18 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches