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.001287/0.001287, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001437/0.001437, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2402/0.2402, allocations: 46.11 MB / 344.2 MB, free: 11.55 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.002423/0.002423, allocations: 81.33 kB / 417.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1221, allocations: 62.46 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.005169/0.1273, allocations: 3.029 MB / 483.2 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002115/0.1295, allocations: 1.079 MB / 484.3 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000309/0.1298, allocations: 4 kB / 484.3 MB, free: 1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000234/0.1301, allocations: 67.27 kB / 484.4 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000332/0.1304, allocations: 118.9 kB / 484.5 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006331/0.1311, allocations: 171.5 kB / 484.7 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005835/0.1317, allocations: 449.9 kB / 485.1 MB, free: 212 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002564/0.1319, allocations: 120.4 kB / 485.2 MB, free: 88 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002722/0.1322, allocations: 163.4 kB / 485.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002886/0.1325, allocations: 175.2 kB / 485.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.926e-05/0.1326, allocations: 32 kB / 485.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001673/0.1328, allocations: 47.98 kB / 485.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.053e-05/0.1328, allocations: 71.77 kB / 485.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002354/0.1331, allocations: 203 kB / 485.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005477/0.1336, allocations: 430.7 kB / 486.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1337, allocations: 0 / 486.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1337, allocations: 0 / 486.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.092e-05/0.1337, allocations: 0 / 486.3 MB, free: 14.98 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.001231/0.1349, allocations: 0.663 MB / 487 MB, free: 14.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.135, allocations: 8.031 kB / 487 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001022/0.1351, allocations: 78.66 kB / 487.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003245/0.1354, allocations: 60.45 kB / 487.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00039/0.1358, allocations: 287.5 kB / 487.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.529e-05/0.1359, allocations: 33.38 kB / 487.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.032e-05/0.136, allocations: 44.03 kB / 487.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006456/0.1366, allocations: 359.6 kB / 487.8 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.578e-05/0.1367, allocations: 4 kB / 487.8 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.17e-05/0.1367, allocations: 12 kB / 487.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.1367, allocations: 11.94 kB / 487.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004723/0.1372, allocations: 223.8 kB / 488.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00245/0.1397, allocations: 1.585 MB / 489.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007084/0.1404, allocations: 315.6 kB / 490 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001933/0.1406, allocations: 101.1 kB / 490.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.1406, allocations: 8 kB / 490.1 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.697e-05/0.1407, allocations: 42.5 kB / 490.1 MB, free: 10.87 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.994e-06/0.1407, allocations: 0 / 490.1 MB, free: 10.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007134/0.1414, allocations: 261.2 kB / 490.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.1415, allocations: 196 kB / 490.6 MB, free: 10.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000288/0.1418, allocations: 238.5 kB / 490.8 MB, free: 10.13 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.99e-05/0.1419, allocations: 33.7 kB / 490.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.142, allocations: 219.9 kB / 491 MB, free: 9.871 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.836e-05/0.1421, allocations: 106.5 kB / 491.2 MB, free: 9.766 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.1422, allocations: 66.14 kB / 491.2 MB, free: 9.695 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.1424, allocations: 346.7 kB / 491.6 MB, free: 9.348 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001911/0.1426, allocations: 80.78 kB / 491.6 MB, free: 9.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003304/0.143, allocations: 257.7 kB / 491.9 MB, free: 8.938 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005382/0.1435, allocations: 353.1 kB / 492.2 MB, free: 8.516 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.1435, allocations: 4 kB / 492.2 MB, free: 8.512 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000692/0.1442, allocations: 385 kB / 492.6 MB, free: 8.129 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.1443, allocations: 8 kB / 492.6 MB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.1443, allocations: 8 kB / 492.6 MB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.1443, allocations: 8 kB / 492.6 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003662/0.1447, allocations: 103.8 kB / 492.7 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.657e-05/0.1447, allocations: 11.94 kB / 492.7 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.1449, allocations: 47.58 kB / 492.8 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.578e-05/0.145, allocations: 16.25 kB / 492.8 MB, free: 7.93 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.0001746/0.1452, allocations: 161.9 kB / 493 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/0.1453, allocations: 27.72 kB / 493 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002049/0.1455, allocations: 95.33 kB / 493.1 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.804e-06/0.1455, allocations: 4 kB / 493.1 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.1456, allocations: 4 kB / 493.1 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.1456, allocations: 3.984 kB / 493.1 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007806/0.1464, allocations: 357.2 kB / 493.4 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.1464, allocations: 0 / 493.4 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004018/0.1468, allocations: 83.84 kB / 493.5 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/0.1468, allocations: 4 kB / 493.5 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.71e-05/0.1468, allocations: 11.98 kB / 493.5 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.1468, allocations: 0 / 493.5 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.1469, allocations: 4 kB / 493.6 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008572/0.1477, allocations: 0.77 MB / 494.3 MB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.418e-05/0.1478, allocations: 100.9 kB / 494.4 MB, free: 6.219 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.887e-05/0.1479, allocations: 16.69 kB / 494.4 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003157/0.1482, allocations: 7.984 kB / 494.4 MB, free: 6.195 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.187e-05/0.1483, allocations: 15.98 kB / 494.5 MB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.976e-05/0.1483, allocations: 15.94 kB / 494.5 MB, free: 6.164 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001724/0.1485, allocations: 174 kB / 494.6 MB, free: 5.996 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1485, allocations: 0 / 494.6 MB, free: 5.996 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006252/0.1491, allocations: 99.69 kB / 494.7 MB, free: 5.898 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.001166/0.1503, allocations: 1.308 MB / 496 MB, free: 4.562 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005012/0.1508, allocations: 248.8 kB / 496.3 MB, free: 4.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1508, allocations: 0 / 496.3 MB, free: 4.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000184/0.151, allocations: 99.77 kB / 496.4 MB, free: 4.223 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009762/0.152, allocations: 85.11 kB / 496.5 MB, free: 4.145 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005926/0.1579, allocations: 4.076 MB / 0.4888 GB, free: 15.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004912/0.1584, allocations: 0.7912 MB / 0.4896 GB, free: 15 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001776/0.1586, allocations: 34.95 kB / 0.4896 GB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.1588, allocations: 115.4 kB / 0.4897 GB, free: 14.85 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1588, allocations: 4 kB / 0.4897 GB, free: 14.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03337/0.1922, allocations: 6.234 MB / 0.4958 GB, free: 8.707 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.033/8.225, allocations: 15.38 kB / 0.4958 GB, free: 8.695 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe 2>&1)