Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 112.7 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 185.2 kB / 19.38 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 222.9 MB / 243.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1921/0.1921, allocations: 44.19 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 67.91 kB / 471.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3164, allocations: 60.82 MB / 0.5195 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003277/0.3197, allocations: 2.699 MB / 0.5222 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.3211, allocations: 0.9464 MB / 0.5231 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.3213, allocations: 9.969 kB / 0.5231 GB, free: 1.027 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001714/0.3214, allocations: 48.17 kB / 0.5232 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001707/0.3216, allocations: 109.6 kB / 0.5233 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004575/0.3221, allocations: 140.8 kB / 0.5234 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003452/0.3224, allocations: 373.1 kB / 0.5237 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.3226, allocations: 98.05 kB / 0.5238 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.3228, allocations: 136.7 kB / 0.524 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001836/0.323, allocations: 141.2 kB / 0.5241 GB, free: 480 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.659e-05/0.323, allocations: 24.22 kB / 0.5241 GB, free: 480 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001258/0.3231, allocations: 42.75 kB / 0.5242 GB, free: 476 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.634e-05/0.3232, allocations: 63.08 kB / 0.5242 GB, free: 432 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000132/0.3233, allocations: 159.5 kB / 0.5244 GB, free: 340 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000403/0.3237, allocations: 366.9 kB / 0.5247 GB, free: 196 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.3238, allocations: 0 / 0.5247 GB, free: 196 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3238, allocations: 4.453 kB / 0.5247 GB, free: 192 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.3238, allocations: 1.5 kB / 0.5247 GB, free: 192 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008903/0.3247, allocations: 0.5957 MB / 0.5253 GB, free: 15.69 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.3247, allocations: 11.72 kB / 0.5253 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002297/0.325, allocations: 45.92 kB / 0.5254 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00037/0.3253, allocations: 271.1 kB / 0.5256 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/0.3254, allocations: 25.22 kB / 0.5257 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.096e-05/0.3254, allocations: 34.08 kB / 0.5257 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005043/0.3259, allocations: 301.6 kB / 0.526 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.326, allocations: 7.172 kB / 0.526 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.767e-05/0.326, allocations: 10.59 kB / 0.526 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.326, allocations: 8.172 kB / 0.526 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003151/0.3263, allocations: 179.9 kB / 0.5262 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001849/0.3282, allocations: 1.338 MB / 0.5275 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004057/0.3286, allocations: 249.5 kB / 0.5277 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.3287, allocations: 79.89 kB / 0.5278 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.3288, allocations: 4.828 kB / 0.5278 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.3288, allocations: 41.91 kB / 0.5278 GB, free: 13.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 1.483e-06/0.3288, allocations: 0 / 0.5278 GB, free: 13.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004764/0.3293, allocations: 226.3 kB / 0.5281 GB, free: 13.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.738e-05/0.3294, allocations: 157 kB / 0.5282 GB, free: 13.51 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/0.3296, allocations: 207.3 kB / 0.5284 GB, free: 13.35 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.745e-05/0.3296, allocations: 31.02 kB / 0.5284 GB, free: 13.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.3297, allocations: 196.4 kB / 0.5286 GB, free: 13.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.849e-05/0.3298, allocations: 92.5 kB / 0.5287 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.209e-05/0.3299, allocations: 64.94 kB / 0.5288 GB, free: 13.01 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.33, allocations: 336.3 kB / 0.5291 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/0.3301, allocations: 63.72 kB / 0.5292 GB, free: 12.65 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001954/0.3303, allocations: 207.4 kB / 0.5293 GB, free: 12.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003366/0.3307, allocations: 302.2 kB / 0.5296 GB, free: 12.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.3307, allocations: 5.281 kB / 0.5296 GB, free: 12.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004375/0.3311, allocations: 309.2 kB / 0.5299 GB, free: 11.99 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.3311, allocations: 7.125 kB / 0.5299 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.3312, allocations: 9.594 kB / 0.53 GB, free: 11.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.3312, allocations: 11.56 kB / 0.53 GB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002743/0.3315, allocations: 87.64 kB / 0.53 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.3315, allocations: 6.469 kB / 0.5301 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.3317, allocations: 34 kB / 0.5301 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.312e-05/0.3317, allocations: 21.64 kB / 0.5301 GB, free: 11.93 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (44): * Single equations (assignments): 44 * 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.000126/0.3318, allocations: 149.1 kB / 0.5302 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/0.3319, allocations: 23.25 kB / 0.5303 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001905/0.3321, allocations: 96.98 kB / 0.5304 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.3321, allocations: 3.156 kB / 0.5304 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.3322, allocations: 1.094 kB / 0.5304 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3322, allocations: 2.031 kB / 0.5304 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005861/0.3328, allocations: 320.4 kB / 0.5307 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3328, allocations: 5.219 kB / 0.5307 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003068/0.3331, allocations: 65.03 kB / 0.5307 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.3331, allocations: 2.812 kB / 0.5307 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.013e-05/0.3331, allocations: 11.44 kB / 0.5308 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.3331, allocations: 2.188 kB / 0.5308 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3331, allocations: 5.375 kB / 0.5308 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005106/0.3337, allocations: 0.6295 MB / 0.5314 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.69e-05/0.3337, allocations: 100.9 kB / 0.5315 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.827e-05/0.3338, allocations: 10.61 kB / 0.5315 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/0.334, allocations: 2.594 kB / 0.5315 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.424e-05/0.3341, allocations: 23.48 kB / 0.5315 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.3341, allocations: 5.812 kB / 0.5315 GB, free: 10.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001206/0.3342, allocations: 154.8 kB / 0.5317 GB, free: 10.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3342, allocations: 0 / 0.5317 GB, free: 10.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005446/0.3348, allocations: 90.25 kB / 0.5317 GB, free: 10.56 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.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 (23): * Single equations (assignments): 23 * 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.0001047/0.3349, allocations: 97.62 kB / 0.5318 GB, free: 10.47 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003145/0.3352, allocations: 194.2 kB / 0.532 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.3352, allocations: 112 / 0.532 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.3353, allocations: 77.19 kB / 0.5321 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008075/0.3361, allocations: 62.83 kB / 0.5322 GB, free: 10.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001682/0.3378, allocations: 1.128 MB / 0.5333 GB, free: 9.418 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.3382, allocations: 0.7783 MB / 0.534 GB, free: 8.676 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.688e-05/0.3383, allocations: 23.06 kB / 0.534 GB, free: 8.668 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3383, allocations: 5.156 kB / 0.534 GB, free: 8.664 MB / 398.1 MB Notification: Performance of Templates: time 0.005527/0.3438, allocations: 3.406 MB / 0.5374 GB, free: 6.863 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches