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.00106/0.00106, allocations: 202.4 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.271/1.271, allocations: 226.5 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008077/0.0008078, allocations: 99.11 kB / 295.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1742/0.1742, allocations: 44.84 MB / 392 MB, free: 9.348 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002283/0.0002284, allocations: 8 kB / 464.7 MB, free: 49.79 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08768/0.08792, allocations: 62.96 MB / 0.5153 GB, free: 2.789 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.002782/0.09075, allocations: 2.502 MB / 0.5178 GB, free: 276 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.1815/0.2723, allocations: 0.9919 MB / 0.5187 GB, free: 9.777 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.2725, allocations: 10.56 kB / 0.5187 GB, free: 9.773 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000134/0.2726, allocations: 39.88 kB / 0.5188 GB, free: 9.754 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001809/0.2728, allocations: 109.8 kB / 0.5189 GB, free: 9.707 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000406/0.2732, allocations: 140.9 kB / 0.519 GB, free: 9.691 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003469/0.2736, allocations: 405.7 kB / 0.5194 GB, free: 9.574 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/0.2737, allocations: 85.47 kB / 0.5195 GB, free: 9.566 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.2739, allocations: 142.9 kB / 0.5196 GB, free: 9.531 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.2741, allocations: 154.7 kB / 0.5198 GB, free: 9.496 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.716e-05/0.2741, allocations: 16.41 kB / 0.5198 GB, free: 9.496 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.2742, allocations: 40.59 kB / 0.5198 GB, free: 9.492 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.911e-05/0.2743, allocations: 57.94 kB / 0.5199 GB, free: 9.48 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.105e-05/0.2744, allocations: 93.83 kB / 0.52 GB, free: 9.438 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003321/0.2747, allocations: 312.4 kB / 0.5203 GB, free: 9.402 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.2747, allocations: 1.062 kB / 0.5203 GB, free: 9.402 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.2747, allocations: 0 / 0.5203 GB, free: 9.402 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.2747, allocations: 3.938 kB / 0.5203 GB, free: 9.398 MB / 346.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.0008005/0.2756, allocations: 0.5896 MB / 0.5209 GB, free: 8.934 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.2756, allocations: 9.688 kB / 0.5209 GB, free: 8.934 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002628/0.2759, allocations: 65.45 kB / 0.5209 GB, free: 8.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002612/0.2761, allocations: 276.4 kB / 0.5212 GB, free: 8.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.833e-05/0.2762, allocations: 31.75 kB / 0.5212 GB, free: 8.676 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.233e-05/0.2762, allocations: 41.08 kB / 0.5213 GB, free: 8.672 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005404/0.2768, allocations: 350.2 kB / 0.5216 GB, free: 8.578 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.581e-05/0.2768, allocations: 12.42 kB / 0.5216 GB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.322e-05/0.2769, allocations: 12.84 kB / 0.5216 GB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.2769, allocations: 12.81 kB / 0.5216 GB, free: 8.566 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004217/0.2773, allocations: 223.9 kB / 0.5218 GB, free: 8.559 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001835/0.2792, allocations: 1.575 MB / 0.5234 GB, free: 7.547 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004923/0.2797, allocations: 314.5 kB / 0.5237 GB, free: 7.391 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.2798, allocations: 98.86 kB / 0.5238 GB, free: 7.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.046e-05/0.2799, allocations: 6.703 kB / 0.5238 GB, free: 7.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/0.2799, allocations: 42.23 kB / 0.5238 GB, free: 7.297 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 1.933e-06/0.2799, allocations: 0 / 0.5238 GB, free: 7.297 MB / 346.7 MB Notification: Performance of matching and sorting (n=26): time 0.0006757/0.2806, allocations: 275.5 kB / 0.5241 GB, free: 7.238 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.337e-05/0.2806, allocations: 185.3 kB / 0.5243 GB, free: 7.02 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.2809, allocations: 235.2 kB / 0.5245 GB, free: 6.902 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.2809, allocations: 30.73 kB / 0.5245 GB, free: 6.871 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.281, allocations: 214 kB / 0.5247 GB, free: 6.723 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.988e-05/0.2811, allocations: 106.8 kB / 0.5248 GB, free: 6.645 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.351e-05/0.2811, allocations: 14.19 kB / 0.5248 GB, free: 6.633 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.165e-05/0.2812, allocations: 338 kB / 0.5252 GB, free: 6.309 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001725/0.2814, allocations: 80.64 kB / 0.5252 GB, free: 6.281 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.2816, allocations: 248.4 kB / 0.5255 GB, free: 6.043 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.2819, allocations: 119.6 kB / 0.5256 GB, free: 5.988 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.2819, allocations: 5.188 kB / 0.5256 GB, free: 5.984 MB / 346.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005771/0.2825, allocations: 389.8 kB / 0.526 GB, free: 5.809 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.2825, allocations: 9.297 kB / 0.526 GB, free: 5.809 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.2825, allocations: 10 kB / 0.526 GB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.2825, allocations: 8.438 kB / 0.526 GB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003321/0.2829, allocations: 105.8 kB / 0.5261 GB, free: 5.797 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.495e-05/0.2829, allocations: 13.11 kB / 0.5261 GB, free: 5.793 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002075/0.2831, allocations: 40.14 kB / 0.5261 GB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.69e-05/0.2831, allocations: 21.48 kB / 0.5262 GB, free: 5.766 MB / 346.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.0001142/0.2832, allocations: 163.8 kB / 0.5263 GB, free: 5.613 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.2834, allocations: 29.64 kB / 0.5263 GB, free: 5.598 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001469/0.2835, allocations: 94.27 kB / 0.5264 GB, free: 5.535 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.2835, allocations: 4.719 kB / 0.5264 GB, free: 5.535 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.902e-06/0.2835, allocations: 2.281 kB / 0.5264 GB, free: 5.535 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.2836, allocations: 3.609 kB / 0.5264 GB, free: 5.535 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005892/0.2842, allocations: 344.6 kB / 0.5268 GB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.2842, allocations: 1.094 kB / 0.5268 GB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003952/0.2846, allocations: 83.92 kB / 0.5269 GB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.2846, allocations: 7.641 kB / 0.5269 GB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.262e-05/0.2846, allocations: 9.188 kB / 0.5269 GB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.2846, allocations: 6.469 kB / 0.5269 GB, free: 5.262 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.2846, allocations: 4 kB / 0.5269 GB, free: 5.262 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005847/0.2852, allocations: 0.7722 MB / 0.5276 GB, free: 4.648 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.307e-05/0.2853, allocations: 105.8 kB / 0.5277 GB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.2853, allocations: 9.016 kB / 0.5277 GB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002965/0.2856, allocations: 14.22 kB / 0.5278 GB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.418e-05/0.2857, allocations: 21.19 kB / 0.5278 GB, free: 4.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.2857, allocations: 11.59 kB / 0.5278 GB, free: 4.516 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001272/0.2858, allocations: 163.7 kB / 0.5279 GB, free: 4.414 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2858, allocations: 0 / 0.5279 GB, free: 4.414 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005367/0.2864, allocations: 97.69 kB / 0.528 GB, free: 4.391 MB / 346.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.853e-05/0.2865, allocations: 105.5 kB / 0.5281 GB, free: 4.293 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004385/0.2869, allocations: 237.1 kB / 0.5284 GB, free: 4.219 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.2869, allocations: 1.25 kB / 0.5284 GB, free: 4.219 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000161/0.2871, allocations: 96.58 kB / 0.5285 GB, free: 4.191 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000813/0.2879, allocations: 77.28 kB / 0.5285 GB, free: 4.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.2897, allocations: 1.623 MB / 0.5301 GB, free: 2.98 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002466/0.29, allocations: 0.788 MB / 0.5309 GB, free: 2.281 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.409e-05/0.2901, allocations: 28.52 kB / 0.5309 GB, free: 2.273 MB / 346.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2901, allocations: 0 / 0.5309 GB, free: 2.273 MB / 346.7 MB Notification: Performance of Templates: time 0.006599/0.2967, allocations: 3.925 MB / 0.5347 GB, free: 1.875 MB / 346.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