Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001281/0.001281, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001315/0.001315, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2306/0.2306, allocations: 46.12 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0023/0.0023, allocations: 85.47 kB / 417.7 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1269, allocations: 62.46 MB / 480.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004604/0.1315, allocations: 3.028 MB / 483.2 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.1336, allocations: 1.067 MB / 484.3 MB, free: 1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001934/0.1338, allocations: 11.94 kB / 484.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001839/0.134, allocations: 59.38 kB / 484.4 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002362/0.1343, allocations: 126.9 kB / 484.5 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005357/0.1348, allocations: 163.6 kB / 484.7 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004824/0.1353, allocations: 457.9 kB / 485.1 MB, free: 200 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002254/0.1355, allocations: 116.4 kB / 485.2 MB, free: 80 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002085/0.1358, allocations: 163.4 kB / 485.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002436/0.136, allocations: 171.2 kB / 485.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.998e-05/0.1361, allocations: 32 kB / 485.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001365/0.1362, allocations: 51.98 kB / 485.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.326e-05/0.1363, allocations: 71.75 kB / 485.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001956/0.1365, allocations: 202.9 kB / 485.9 MB, free: 15.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004819/0.137, allocations: 430.8 kB / 486.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.137, allocations: 0 / 486.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.137, allocations: 4 kB / 486.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.137, allocations: 0 / 486.3 MB, free: 14.97 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.001126/0.1382, allocations: 0.6629 MB / 487 MB, free: 14.26 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.1382, allocations: 12.03 kB / 487 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.164e-05/0.1383, allocations: 66.72 kB / 487.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003194/0.1386, allocations: 68.44 kB / 487.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003714/0.139, allocations: 287.5 kB / 487.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.816e-05/0.1391, allocations: 25.38 kB / 487.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.078e-05/0.1391, allocations: 48.03 kB / 487.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006435/0.1398, allocations: 359.6 kB / 487.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/0.1398, allocations: 4 kB / 487.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.076e-05/0.1399, allocations: 16 kB / 487.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.1399, allocations: 12 kB / 487.9 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004617/0.1403, allocations: 215.8 kB / 488.1 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002452/0.1428, allocations: 1.592 MB / 489.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006048/0.1434, allocations: 315.5 kB / 490 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001803/0.1436, allocations: 101.2 kB / 490.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.1437, allocations: 8 kB / 490.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.1437, allocations: 42.5 kB / 490.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 2.054e-06/0.1437, allocations: 0 / 490.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006937/0.1444, allocations: 265.3 kB / 490.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.1445, allocations: 191.8 kB / 490.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002637/0.1448, allocations: 242.5 kB / 490.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.1448, allocations: 29.7 kB / 490.8 MB, free: 10.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.145, allocations: 215.9 kB / 491 MB, free: 9.863 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.071e-05/0.1451, allocations: 106.5 kB / 491.1 MB, free: 9.758 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.1452, allocations: 70.14 kB / 491.2 MB, free: 9.684 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.1454, allocations: 346.7 kB / 491.6 MB, free: 9.336 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.1456, allocations: 88.83 kB / 491.6 MB, free: 9.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000336/0.1459, allocations: 245.7 kB / 491.9 MB, free: 8.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005431/0.1465, allocations: 361.1 kB / 492.2 MB, free: 8.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.1465, allocations: 4 kB / 492.2 MB, free: 8.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007059/0.1472, allocations: 384.8 kB / 492.6 MB, free: 8.113 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.1473, allocations: 8 kB / 492.6 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.1473, allocations: 4 kB / 492.6 MB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/0.1473, allocations: 8 kB / 492.6 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003948/0.1477, allocations: 107.8 kB / 492.7 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.153e-05/0.1477, allocations: 12.47 kB / 492.8 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002433/0.148, allocations: 43.58 kB / 492.8 MB, free: 7.934 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.035e-05/0.148, allocations: 20 kB / 492.8 MB, free: 7.914 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.000218/0.1483, allocations: 161.6 kB / 493 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.1484, allocations: 27.72 kB / 493 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002199/0.1486, allocations: 95.38 kB / 493.1 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.1486, allocations: 4 kB / 493.1 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.1487, allocations: 0 / 493.1 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.1487, allocations: 4 kB / 493.1 MB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007506/0.1494, allocations: 354 kB / 493.4 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1494, allocations: 0 / 493.4 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004347/0.1499, allocations: 83.89 kB / 493.5 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.78e-06/0.1499, allocations: 4 kB / 493.5 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.634e-05/0.1499, allocations: 8.312 kB / 493.5 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.1499, allocations: 3.938 kB / 493.5 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.377e-06/0.15, allocations: 8 kB / 493.6 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008601/0.1508, allocations: 0.77 MB / 494.3 MB, free: 6.324 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.916e-05/0.1509, allocations: 104.8 kB / 494.4 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.615e-05/0.151, allocations: 8 kB / 494.4 MB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003073/0.1513, allocations: 11.98 kB / 494.4 MB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.481e-05/0.1514, allocations: 23.92 kB / 494.5 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.1514, allocations: 15.92 kB / 494.5 MB, free: 6.145 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001781/0.1516, allocations: 170 kB / 494.6 MB, free: 5.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1516, allocations: 0 / 494.6 MB, free: 5.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006284/0.1522, allocations: 99.69 kB / 494.7 MB, free: 5.883 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 0.001175/0.1534, allocations: 1.304 MB / 496 MB, free: 4.551 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005476/0.154, allocations: 248.1 kB / 496.3 MB, free: 4.309 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.154, allocations: 0 / 496.3 MB, free: 4.309 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001816/0.1542, allocations: 95.83 kB / 496.4 MB, free: 4.215 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009892/0.1552, allocations: 79.22 kB / 496.5 MB, free: 4.141 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005769/0.1609, allocations: 4.08 MB / 0.4888 GB, free: 15.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005873/0.1616, allocations: 0.7873 MB / 0.4896 GB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002134/0.1618, allocations: 42.95 kB / 0.4896 GB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001802/0.162, allocations: 107.6 kB / 0.4897 GB, free: 14.84 MB / 382.1 MB Notification: Performance of SimCode: time 7.22e-07/0.162, allocations: 0 / 0.4897 GB, free: 14.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03478/0.1968, allocations: 6.254 MB / 0.4958 GB, free: 8.691 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.132/8.329, allocations: 19.05 kB / 0.4958 GB, free: 8.676 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe 2>&1)