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.001181/0.001181, allocations: 112.5 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.001286/0.001286, allocations: 200 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.259/1.259, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1933/0.1933, allocations: 46.11 MB / 345 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 75.89 kB / 482 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2771, allocations: 62.44 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003608/0.2808, allocations: 3.042 MB / 0.5346 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.2824, allocations: 1.071 MB / 0.5357 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001587/0.2825, allocations: 7.062 kB / 0.5357 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001689/0.2827, allocations: 62 kB / 0.5357 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000206/0.2829, allocations: 121 kB / 0.5358 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004675/0.2834, allocations: 178.9 kB / 0.536 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004126/0.2838, allocations: 458.8 kB / 0.5364 GB, free: 9.766 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001989/0.284, allocations: 122 kB / 0.5366 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001591/0.2842, allocations: 160.6 kB / 0.5367 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001895/0.2844, allocations: 177.1 kB / 0.5369 GB, free: 9.488 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.332e-05/0.2845, allocations: 30.62 kB / 0.5369 GB, free: 9.488 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001196/0.2846, allocations: 50.48 kB / 0.537 GB, free: 9.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.93e-05/0.2847, allocations: 78.66 kB / 0.537 GB, free: 9.414 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001672/0.2848, allocations: 193.5 kB / 0.5372 GB, free: 9.293 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004137/0.2852, allocations: 442.5 kB / 0.5376 GB, free: 8.992 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2853, allocations: 0 / 0.5376 GB, free: 8.992 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.2853, allocations: 7.922 kB / 0.5376 GB, free: 8.984 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.2853, allocations: 1.125 kB / 0.5376 GB, free: 8.984 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.0009044/0.2862, allocations: 0.6493 MB / 0.5383 GB, free: 8.414 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.2862, allocations: 9.469 kB / 0.5383 GB, free: 8.414 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002878/0.2865, allocations: 63.97 kB / 0.5384 GB, free: 8.387 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003623/0.2869, allocations: 302.5 kB / 0.5386 GB, free: 8.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.599e-05/0.2869, allocations: 26.72 kB / 0.5387 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.397e-05/0.287, allocations: 40.78 kB / 0.5387 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005319/0.2875, allocations: 364.1 kB / 0.5391 GB, free: 7.812 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.545e-05/0.2876, allocations: 18.7 kB / 0.5391 GB, free: 7.797 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.2876, allocations: 11.91 kB / 0.5391 GB, free: 7.789 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.2876, allocations: 8.562 kB / 0.5391 GB, free: 7.789 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004005/0.288, allocations: 218.8 kB / 0.5393 GB, free: 7.691 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.29, allocations: 1.576 MB / 0.5408 GB, free: 6.277 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005655/0.2906, allocations: 311.9 kB / 0.5411 GB, free: 6.035 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.2908, allocations: 95.38 kB / 0.5412 GB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.2908, allocations: 4.281 kB / 0.5412 GB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.2908, allocations: 45.16 kB / 0.5413 GB, free: 5.906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.613e-06/0.2908, allocations: 0 / 0.5413 GB, free: 5.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006116/0.2915, allocations: 271.7 kB / 0.5415 GB, free: 5.762 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.884e-05/0.2915, allocations: 191.4 kB / 0.5417 GB, free: 5.535 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002049/0.2918, allocations: 240.9 kB / 0.5419 GB, free: 5.363 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.2918, allocations: 31.58 kB / 0.542 GB, free: 5.328 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.2919, allocations: 217.5 kB / 0.5422 GB, free: 5.129 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.093e-05/0.292, allocations: 111.5 kB / 0.5423 GB, free: 5.031 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.331e-05/0.2921, allocations: 70.3 kB / 0.5424 GB, free: 4.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.2922, allocations: 341.1 kB / 0.5427 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001645/0.2924, allocations: 76.81 kB / 0.5428 GB, free: 4.613 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002544/0.2926, allocations: 247.3 kB / 0.543 GB, free: 4.359 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004179/0.293, allocations: 368.2 kB / 0.5433 GB, free: 4.031 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.2931, allocations: 1.281 kB / 0.5433 GB, free: 4.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005717/0.2936, allocations: 387.1 kB / 0.5437 GB, free: 3.828 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.2937, allocations: 7.812 kB / 0.5437 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.2937, allocations: 5.844 kB / 0.5437 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.2937, allocations: 16.17 kB / 0.5437 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003306/0.294, allocations: 105.9 kB / 0.5438 GB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.2941, allocations: 8.344 kB / 0.5438 GB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/0.2943, allocations: 45.5 kB / 0.5439 GB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.759e-05/0.2943, allocations: 24.48 kB / 0.5439 GB, free: 3.758 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.000147/0.2945, allocations: 163.1 kB / 0.5441 GB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.2946, allocations: 26.06 kB / 0.5441 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001645/0.2948, allocations: 102 kB / 0.5442 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.2948, allocations: 3.594 kB / 0.5442 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/0.2948, allocations: 2.5 kB / 0.5442 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.2948, allocations: 9.578 kB / 0.5442 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00062/0.2954, allocations: 350.1 kB / 0.5445 GB, free: 3.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2954, allocations: 1.188 kB / 0.5445 GB, free: 3.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003694/0.2958, allocations: 79.05 kB / 0.5446 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.349e-06/0.2958, allocations: 3.312 kB / 0.5446 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.2958, allocations: 11.83 kB / 0.5446 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.2959, allocations: 2.594 kB / 0.5446 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.2959, allocations: 2.094 kB / 0.5446 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006504/0.2965, allocations: 0.7737 MB / 0.5454 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.029e-05/0.2966, allocations: 104.7 kB / 0.5455 GB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.2966, allocations: 11.88 kB / 0.5455 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002872/0.2969, allocations: 4.688 kB / 0.5455 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.059e-05/0.297, allocations: 21.25 kB / 0.5455 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.297, allocations: 11.38 kB / 0.5455 GB, free: 2.379 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001359/0.2971, allocations: 172.1 kB / 0.5457 GB, free: 2.258 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2971, allocations: 0 / 0.5457 GB, free: 2.258 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005696/0.2977, allocations: 98.52 kB / 0.5458 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 9.848e-05/0.2978, allocations: 109.4 kB / 0.5459 GB, free: 2.133 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004184/0.2983, allocations: 233 kB / 0.5461 GB, free: 2.039 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2983, allocations: 0 / 0.5461 GB, free: 2.039 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001695/0.2984, allocations: 97.25 kB / 0.5462 GB, free: 2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008325/0.2993, allocations: 84.69 kB / 0.5463 GB, free: 1.953 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001721/0.301, allocations: 1.326 MB / 0.5476 GB, free: 0.668 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.3013, allocations: 0.7912 MB / 0.5484 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.014e-05/0.3014, allocations: 23.44 kB / 0.5484 GB, free: 15.83 MB / 414.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3014, allocations: 0 / 0.5484 GB, free: 15.83 MB / 414.1 MB Notification: Performance of Templates: time 0.005191/0.3066, allocations: 4.094 MB / 0.5524 GB, free: 11.74 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