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.001097/0.001098, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001141/0.001141, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2096/0.2096, allocations: 46.11 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.00138, allocations: 76.69 kB / 419 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1114, allocations: 62.44 MB / 481.4 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003944/0.1154, allocations: 3.038 MB / 484.5 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001574/0.117, allocations: 1.075 MB / 485.6 MB, free: 432 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.1171, allocations: 7.938 kB / 485.6 MB, free: 424 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001588/0.1173, allocations: 63.38 kB / 485.6 MB, free: 360 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001924/0.1175, allocations: 122.9 kB / 485.7 MB, free: 236 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000474/0.118, allocations: 163.6 kB / 485.9 MB, free: 72 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004415/0.1184, allocations: 457.8 kB / 486.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00021/0.1187, allocations: 116.4 kB / 486.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.1188, allocations: 163.4 kB / 486.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002011/0.119, allocations: 179.2 kB / 486.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.262e-05/0.1191, allocations: 28 kB / 486.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001185/0.1192, allocations: 55.98 kB / 486.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.679e-05/0.1193, allocations: 71.75 kB / 486.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001663/0.1195, allocations: 199 kB / 487.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004028/0.1199, allocations: 438.5 kB / 487.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1199, allocations: 0 / 487.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1199, allocations: 0 / 487.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1199, allocations: 0 / 487.6 MB, free: 14.39 MB / 366.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.000988/0.1209, allocations: 0.6551 MB / 488.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.1209, allocations: 16.02 kB / 488.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002775/0.1212, allocations: 60.45 kB / 488.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003617/0.1216, allocations: 299.5 kB / 488.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/0.1216, allocations: 25.38 kB / 488.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.277e-05/0.1217, allocations: 44.28 kB / 488.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005351/0.1222, allocations: 363.5 kB / 489 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.1223, allocations: 8 kB / 489 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.791e-05/0.1223, allocations: 12 kB / 489 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.1223, allocations: 15.94 kB / 489.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004109/0.1228, allocations: 215.8 kB / 489.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002077/0.1248, allocations: 1.569 MB / 490.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005389/0.1254, allocations: 323.6 kB / 491.1 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.1256, allocations: 105.1 kB / 491.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.1256, allocations: 4 kB / 491.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.1256, allocations: 50.48 kB / 491.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.513e-06/0.1256, allocations: 0 / 491.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006385/0.1263, allocations: 257.2 kB / 491.6 MB, free: 10.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.403e-05/0.1264, allocations: 191.8 kB / 491.7 MB, free: 9.863 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002219/0.1266, allocations: 246.5 kB / 492 MB, free: 9.613 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.253e-05/0.1266, allocations: 25.7 kB / 492 MB, free: 9.582 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.1268, allocations: 220 kB / 492.2 MB, free: 9.363 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.946e-05/0.1269, allocations: 106.5 kB / 492.3 MB, free: 9.258 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.329e-05/0.127, allocations: 78.03 kB / 492.4 MB, free: 9.176 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.1271, allocations: 338.8 kB / 492.7 MB, free: 8.836 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001696/0.1273, allocations: 84.83 kB / 492.8 MB, free: 8.754 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000263/0.1275, allocations: 245.7 kB / 493.1 MB, free: 8.434 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004512/0.128, allocations: 361.1 kB / 493.4 MB, free: 8.004 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.128, allocations: 0 / 493.4 MB, free: 8.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005997/0.1286, allocations: 388.7 kB / 493.8 MB, free: 7.617 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.1286, allocations: 8.625 kB / 493.8 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1286, allocations: 4 kB / 493.8 MB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.474e-05/0.1287, allocations: 12 kB / 493.8 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00037/0.1291, allocations: 103.8 kB / 493.9 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/0.1291, allocations: 15.92 kB / 493.9 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002129/0.1293, allocations: 39.69 kB / 494 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.1293, allocations: 23.94 kB / 494 MB, free: 7.414 MB / 366.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.000145/0.1295, allocations: 161.7 kB / 494.1 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001322/0.1296, allocations: 27.66 kB / 494.2 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001736/0.1298, allocations: 99.38 kB / 494.3 MB, free: 7.117 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.1298, allocations: 4 kB / 494.3 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1298, allocations: 0 / 494.3 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.1298, allocations: 4 kB / 494.3 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006539/0.1305, allocations: 349.2 kB / 494.6 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.1305, allocations: 0 / 494.6 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004196/0.1309, allocations: 83.89 kB / 494.7 MB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.131, allocations: 4 kB / 494.7 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/0.131, allocations: 8 kB / 494.7 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/0.131, allocations: 4 kB / 494.7 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.131, allocations: 3.938 kB / 494.7 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006943/0.1317, allocations: 0.7707 MB / 495.5 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.551e-05/0.1318, allocations: 100.8 kB / 495.6 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.976e-05/0.1318, allocations: 12 kB / 495.6 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003257/0.1322, allocations: 12.23 kB / 495.6 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.194e-05/0.1322, allocations: 19.98 kB / 495.6 MB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.1322, allocations: 15.97 kB / 495.7 MB, free: 5.648 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001451/0.1324, allocations: 173.9 kB / 495.8 MB, free: 5.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.322e-06/0.1324, allocations: 0 / 495.8 MB, free: 5.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006022/0.133, allocations: 103.6 kB / 495.9 MB, free: 5.379 MB / 366.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.86e-05/0.1331, allocations: 107.2 kB / 496 MB, free: 5.266 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004287/0.1335, allocations: 232.6 kB / 496.3 MB, free: 5.039 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1336, allocations: 1.25 kB / 496.3 MB, free: 5.039 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001762/0.1337, allocations: 100.1 kB / 496.4 MB, free: 4.941 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008714/0.1346, allocations: 76.34 kB / 496.4 MB, free: 4.867 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00179/0.1364, allocations: 1.3 MB / 497.7 MB, free: 3.523 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003631/0.1368, allocations: 0.7912 MB / 498.5 MB, free: 2.707 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001311/0.1369, allocations: 34.95 kB / 498.6 MB, free: 2.668 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.227e-05/0.137, allocations: 27.42 kB / 498.6 MB, free: 2.641 MB / 366.1 MB Notification: Performance of SimCode: time 3.5e-07/0.137, allocations: 4 kB / 498.6 MB, free: 2.637 MB / 366.1 MB Notification: Performance of Templates: time 0.006105/0.1431, allocations: 3.035 MB / 0.4899 GB, free: 15.64 MB / 382.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 -s gbode -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