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.00111/0.001111, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001154/0.001154, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3595/0.3595, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 71.88 kB / 481.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4645/0.4659, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.007/0.4729, allocations: 3.034 MB / 0.5339 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003559/0.4765, allocations: 1.076 MB / 0.535 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008161/0.4774, allocations: 10.69 kB / 0.535 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004919/0.4779, allocations: 56.67 kB / 0.535 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008687/0.4789, allocations: 120.4 kB / 0.5352 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001263/0.4802, allocations: 174.6 kB / 0.5353 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001528/0.4817, allocations: 458.1 kB / 0.5358 GB, free: 9.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000477/0.4822, allocations: 121.9 kB / 0.5359 GB, free: 9.695 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005316/0.4828, allocations: 160.8 kB / 0.536 GB, free: 9.609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005269/0.4833, allocations: 177.4 kB / 0.5362 GB, free: 9.492 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001206/0.4835, allocations: 30.44 kB / 0.5362 GB, free: 9.492 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003209/0.4838, allocations: 57.72 kB / 0.5363 GB, free: 9.477 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.4839, allocations: 71.33 kB / 0.5364 GB, free: 9.418 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004555/0.4844, allocations: 196.8 kB / 0.5365 GB, free: 9.293 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.4854, allocations: 435 kB / 0.537 GB, free: 9 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.145e-05/0.4855, allocations: 0 / 0.537 GB, free: 9 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4855, allocations: 3.938 kB / 0.537 GB, free: 8.996 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.106e-05/0.4855, allocations: 0.8125 kB / 0.537 GB, free: 8.996 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.002062/0.4876, allocations: 0.6533 MB / 0.5376 GB, free: 8.422 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.6e-05/0.4877, allocations: 13.95 kB / 0.5376 GB, free: 8.418 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005413/0.4882, allocations: 63.17 kB / 0.5377 GB, free: 8.391 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008016/0.489, allocations: 301.9 kB / 0.538 GB, free: 8.094 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.603e-05/0.4891, allocations: 28 kB / 0.538 GB, free: 8.082 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.4892, allocations: 48.64 kB / 0.538 GB, free: 8.059 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/0.4902, allocations: 358.9 kB / 0.5384 GB, free: 7.812 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.448e-05/0.4903, allocations: 11.19 kB / 0.5384 GB, free: 7.805 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.191e-05/0.4904, allocations: 16.25 kB / 0.5384 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.316e-05/0.4904, allocations: 8.562 kB / 0.5384 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006958/0.4911, allocations: 219.7 kB / 0.5386 GB, free: 7.695 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003258/0.4944, allocations: 1.575 MB / 0.5402 GB, free: 6.281 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008115/0.4952, allocations: 312.7 kB / 0.5405 GB, free: 6.039 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002409/0.4955, allocations: 95.45 kB / 0.5405 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.4955, allocations: 8.172 kB / 0.5406 GB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.748e-05/0.4956, allocations: 45.23 kB / 0.5406 GB, free: 5.906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.756e-06/0.4956, allocations: 0 / 0.5406 GB, free: 5.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0009884/0.4966, allocations: 262.9 kB / 0.5408 GB, free: 5.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.4967, allocations: 188.5 kB / 0.541 GB, free: 5.547 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00034/0.4971, allocations: 243.5 kB / 0.5413 GB, free: 5.371 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.521e-05/0.4971, allocations: 31.86 kB / 0.5413 GB, free: 5.336 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002137/0.4973, allocations: 214.9 kB / 0.5415 GB, free: 5.141 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.4975, allocations: 110.6 kB / 0.5416 GB, free: 5.043 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001704/0.4976, allocations: 74.03 kB / 0.5417 GB, free: 4.988 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.4978, allocations: 341.9 kB / 0.542 GB, free: 4.652 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002532/0.4981, allocations: 81.17 kB / 0.5421 GB, free: 4.617 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004217/0.4985, allocations: 243.6 kB / 0.5423 GB, free: 4.367 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007394/0.4993, allocations: 371.6 kB / 0.5427 GB, free: 4.035 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.4993, allocations: 5.344 kB / 0.5427 GB, free: 4.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009926/0.5003, allocations: 383 kB / 0.543 GB, free: 3.832 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.5003, allocations: 8.594 kB / 0.543 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/0.5003, allocations: 5.938 kB / 0.543 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.396e-05/0.5004, allocations: 11.91 kB / 0.5431 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000515/0.5009, allocations: 105.8 kB / 0.5432 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.689e-05/0.501, allocations: 12.11 kB / 0.5432 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003928/0.5014, allocations: 41.41 kB / 0.5432 GB, free: 3.773 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.705e-05/0.5014, allocations: 19.81 kB / 0.5432 GB, free: 3.77 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.0002426/0.5017, allocations: 167.1 kB / 0.5434 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002429/0.5019, allocations: 26.06 kB / 0.5434 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002507/0.5022, allocations: 106.5 kB / 0.5435 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/0.5022, allocations: 3.469 kB / 0.5435 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.5022, allocations: 6.656 kB / 0.5435 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.5022, allocations: 1.188 kB / 0.5435 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.5034, allocations: 353.8 kB / 0.5439 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/0.5034, allocations: 1.094 kB / 0.5439 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005615/0.504, allocations: 80.23 kB / 0.5439 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.277e-06/0.504, allocations: 2.344 kB / 0.5439 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.29e-05/0.504, allocations: 8.625 kB / 0.544 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.504, allocations: 2.938 kB / 0.544 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/0.504, allocations: 5.375 kB / 0.544 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008367/0.5049, allocations: 0.7737 MB / 0.5447 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/0.505, allocations: 101.4 kB / 0.5448 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.111e-05/0.5051, allocations: 12.09 kB / 0.5448 GB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003279/0.5054, allocations: 12.8 kB / 0.5448 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.851e-05/0.5055, allocations: 17.36 kB / 0.5449 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.5055, allocations: 13.86 kB / 0.5449 GB, free: 2.379 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001822/0.5057, allocations: 172.7 kB / 0.545 GB, free: 2.258 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5057, allocations: 0 / 0.545 GB, free: 2.258 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007221/0.5064, allocations: 98.53 kB / 0.5451 GB, free: 2.234 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.0001784/0.5066, allocations: 109.5 kB / 0.5452 GB, free: 2.133 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005972/0.5072, allocations: 232.3 kB / 0.5454 GB, free: 2.039 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.5072, allocations: 1.156 kB / 0.5454 GB, free: 2.039 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002125/0.5075, allocations: 99.77 kB / 0.5455 GB, free: 1.996 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.5085, allocations: 81.14 kB / 0.5456 GB, free: 1.957 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.5107, allocations: 1.294 MB / 0.5469 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004403/0.5112, allocations: 0.7873 MB / 0.5477 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001719/0.5114, allocations: 38.95 kB / 0.5477 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.292e-05/0.5115, allocations: 31.61 kB / 0.5477 GB, free: 15.84 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.5115, allocations: 0 / 0.5477 GB, free: 15.84 MB / 414.1 MB Notification: Performance of Templates: time 0.008208/0.5197, allocations: 3.163 MB / 0.5508 GB, free: 12.71 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches