Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001158/0.001158, allocations: 112.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001229/0.001229, allocations: 204 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 247.6 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2112/0.2112, allocations: 46.1 MB / 344.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 79.81 kB / 482 MB, free: 4.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3471, allocations: 62.43 MB / 0.5316 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004274/0.3514, allocations: 3.038 MB / 0.5346 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002028/0.3535, allocations: 1.064 MB / 0.5356 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002267/0.3537, allocations: 14.5 kB / 0.5357 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002194/0.3539, allocations: 65.59 kB / 0.5357 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000218/0.3542, allocations: 116.8 kB / 0.5358 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005589/0.3548, allocations: 182.9 kB / 0.536 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004819/0.3553, allocations: 458.3 kB / 0.5364 GB, free: 9.746 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.3555, allocations: 116.5 kB / 0.5365 GB, free: 9.676 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002006/0.3557, allocations: 165.5 kB / 0.5367 GB, free: 9.586 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.3559, allocations: 172.5 kB / 0.5369 GB, free: 9.473 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.243e-05/0.356, allocations: 30.53 kB / 0.5369 GB, free: 9.473 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001524/0.3562, allocations: 51.36 kB / 0.5369 GB, free: 9.465 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.929e-05/0.3562, allocations: 78.34 kB / 0.537 GB, free: 9.398 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001835/0.3564, allocations: 192.8 kB / 0.5372 GB, free: 9.277 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004942/0.3569, allocations: 439.7 kB / 0.5376 GB, free: 8.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.357, allocations: 3.984 kB / 0.5376 GB, free: 8.977 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.357, allocations: 0 / 0.5376 GB, free: 8.977 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.357, allocations: 0 / 0.5376 GB, free: 8.977 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001085/0.3581, allocations: 0.6536 MB / 0.5383 GB, free: 8.402 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.3581, allocations: 13.62 kB / 0.5383 GB, free: 8.398 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000294/0.3584, allocations: 63.31 kB / 0.5383 GB, free: 8.371 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004162/0.3588, allocations: 298 kB / 0.5386 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.068e-05/0.3589, allocations: 27.97 kB / 0.5387 GB, free: 8.066 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.772e-05/0.359, allocations: 49 kB / 0.5387 GB, free: 8.043 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005958/0.3596, allocations: 366.8 kB / 0.539 GB, free: 7.789 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.32e-05/0.3596, allocations: 3.938 kB / 0.5391 GB, free: 7.789 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.242e-05/0.3596, allocations: 14.38 kB / 0.5391 GB, free: 7.777 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.967e-05/0.3597, allocations: 9.5 kB / 0.5391 GB, free: 7.777 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004115/0.3601, allocations: 220.8 kB / 0.5393 GB, free: 7.676 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002339/0.3624, allocations: 1.578 MB / 0.5408 GB, free: 6.258 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000573/0.363, allocations: 304.2 kB / 0.5411 GB, free: 6.023 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.3632, allocations: 100.7 kB / 0.5412 GB, free: 5.941 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.693e-05/0.3632, allocations: 6.312 kB / 0.5412 GB, free: 5.938 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.86e-05/0.3633, allocations: 37.91 kB / 0.5413 GB, free: 5.895 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.975e-06/0.3633, allocations: 0.9688 kB / 0.5413 GB, free: 5.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006987/0.364, allocations: 266.4 kB / 0.5415 GB, free: 5.754 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.3641, allocations: 188.1 kB / 0.5417 GB, free: 5.531 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003094/0.3644, allocations: 244.1 kB / 0.5419 GB, free: 5.355 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.3645, allocations: 26.89 kB / 0.5419 GB, free: 5.324 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.3646, allocations: 223.2 kB / 0.5422 GB, free: 5.121 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.439e-05/0.3647, allocations: 108 kB / 0.5423 GB, free: 5.027 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.3649, allocations: 69.2 kB / 0.5423 GB, free: 4.977 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.365, allocations: 341.6 kB / 0.5427 GB, free: 4.641 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/0.3652, allocations: 81.19 kB / 0.5427 GB, free: 4.605 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000366/0.3656, allocations: 248 kB / 0.543 GB, free: 4.352 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00048/0.366, allocations: 375.1 kB / 0.5433 GB, free: 4.016 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.3661, allocations: 1.156 kB / 0.5433 GB, free: 4.016 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006292/0.3667, allocations: 383.4 kB / 0.5437 GB, free: 3.816 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.3667, allocations: 7.938 kB / 0.5437 GB, free: 3.816 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.3667, allocations: 5.906 kB / 0.5437 GB, free: 3.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.3668, allocations: 12.23 kB / 0.5437 GB, free: 3.812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003601/0.3671, allocations: 102.2 kB / 0.5438 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.3672, allocations: 8.094 kB / 0.5438 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002412/0.3674, allocations: 45.06 kB / 0.5439 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.3674, allocations: 28.88 kB / 0.5439 GB, free: 3.75 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003301/0.3678, allocations: 170.8 kB / 0.5441 GB, free: 3.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.3679, allocations: 26.75 kB / 0.5441 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001829/0.3681, allocations: 97.92 kB / 0.5442 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.3681, allocations: 7.562 kB / 0.5442 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.577e-06/0.3681, allocations: 2.188 kB / 0.5442 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.3682, allocations: 5.047 kB / 0.5442 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007081/0.3689, allocations: 345.8 kB / 0.5445 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3689, allocations: 2.219 kB / 0.5445 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003926/0.3693, allocations: 87.48 kB / 0.5446 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.3693, allocations: 2.062 kB / 0.5446 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.587e-05/0.3693, allocations: 12.52 kB / 0.5446 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/0.3693, allocations: 2.281 kB / 0.5446 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3693, allocations: 2.219 kB / 0.5446 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009847/0.3703, allocations: 0.7736 MB / 0.5454 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.3705, allocations: 101.7 kB / 0.5455 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.178e-05/0.3705, allocations: 7.688 kB / 0.5455 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/0.3708, allocations: 8.312 kB / 0.5455 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.178e-05/0.3709, allocations: 21.84 kB / 0.5455 GB, free: 2.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.3709, allocations: 10.56 kB / 0.5455 GB, free: 2.367 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001552/0.3711, allocations: 180.3 kB / 0.5457 GB, free: 2.238 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3711, allocations: 0 / 0.5457 GB, free: 2.238 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000673/0.3718, allocations: 97.72 kB / 0.5458 GB, free: 2.215 MB / 398.1 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 (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.0001237/0.3719, allocations: 106.2 kB / 0.5459 GB, free: 2.117 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004923/0.3724, allocations: 236.6 kB / 0.5461 GB, free: 2.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3724, allocations: 0 / 0.5461 GB, free: 2.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001752/0.3726, allocations: 92.25 kB / 0.5462 GB, free: 1.984 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009433/0.3735, allocations: 72.27 kB / 0.5463 GB, free: 1.949 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002037/0.3756, allocations: 1.334 MB / 0.5476 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003819/0.376, allocations: 0.7912 MB / 0.5483 GB, free: 15.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.569e-05/0.3761, allocations: 31.38 kB / 0.5484 GB, free: 15.8 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3761, allocations: 192 / 0.5484 GB, free: 15.8 MB / 414.1 MB Notification: Performance of Templates: time 0.007356/0.3834, allocations: 4.086 MB / 0.5524 GB, free: 11.72 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches