Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.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.TestSpeed,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001356/0.001356, 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.001364/0.001364, 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.469/1.469, allocations: 227.4 MB / 246.8 MB, free: 10.58 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.2295/0.2295, allocations: 46.11 MB / 344.2 MB, free: 11.58 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.002347/0.002347, allocations: 80.61 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1214, allocations: 62.45 MB / 480.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004284/0.1258, allocations: 2.631 MB / 482.8 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001527/0.1273, allocations: 0.7245 MB / 483.5 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001819/0.1275, allocations: 11.94 kB / 483.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000185/0.1277, allocations: 43.52 kB / 483.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001846/0.1279, allocations: 87.2 kB / 483.7 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003421/0.1283, allocations: 107.8 kB / 483.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000392/0.1287, allocations: 326.6 kB / 484.1 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.1289, allocations: 81.94 kB / 484.2 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002779/0.1292, allocations: 131.5 kB / 484.3 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001857/0.1294, allocations: 135.3 kB / 484.5 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.335e-05/0.1294, allocations: 24 kB / 484.5 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.135e-05/0.1295, allocations: 27.98 kB / 484.5 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.603e-05/0.1296, allocations: 59.77 kB / 484.6 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001455/0.1298, allocations: 147.2 kB / 484.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000352/0.1301, allocations: 303.1 kB / 485 MB, free: 328 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.1301, allocations: 0 / 485 MB, free: 328 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1301, allocations: 0 / 485 MB, free: 328 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.1301, allocations: 0 / 485 MB, free: 328 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001021/0.1312, allocations: 0.5963 MB / 485.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.1312, allocations: 8.031 kB / 485.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.898e-05/0.1313, allocations: 62.72 kB / 485.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002527/0.1316, allocations: 48.55 kB / 485.7 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.1319, allocations: 272.7 kB / 486 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.217e-05/0.132, allocations: 20.94 kB / 486 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.205e-05/0.132, allocations: 24.38 kB / 486 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005136/0.1325, allocations: 290 kB / 486.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.1326, allocations: 3.906 kB / 486.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.474e-05/0.1326, allocations: 12 kB / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.1326, allocations: 4 kB / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004525/0.1331, allocations: 194.1 kB / 486.5 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001732/0.1348, allocations: 1.31 MB / 487.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004221/0.1353, allocations: 246.5 kB / 488.1 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002075/0.1355, allocations: 107.4 kB / 488.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.1355, allocations: 0 / 488.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.1355, allocations: 38.5 kB / 488.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.733e-06/0.1355, allocations: 0 / 488.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002782/0.1383, allocations: 1.569 MB / 489.8 MB, free: 11.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.684e-05/0.1384, allocations: 136.5 kB / 489.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002491/0.1387, allocations: 228.9 kB / 490.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/0.1387, allocations: 33.7 kB / 490.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.1389, allocations: 176.2 kB / 490.3 MB, free: 10.44 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.139, allocations: 118.3 kB / 490.5 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.1391, allocations: 74.05 kB / 490.5 MB, free: 10.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.1393, allocations: 338.8 kB / 490.9 MB, free: 9.906 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002515/0.1395, allocations: 96.81 kB / 491 MB, free: 9.812 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003558/0.1399, allocations: 241.4 kB / 491.2 MB, free: 9.512 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006387/0.1406, allocations: 369.1 kB / 491.6 MB, free: 9.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1406, allocations: 0 / 491.6 MB, free: 9.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007844/0.1414, allocations: 389.5 kB / 491.9 MB, free: 8.703 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.1414, allocations: 8 kB / 491.9 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.1414, allocations: 4 kB / 491.9 MB, free: 8.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.1414, allocations: 8.875 kB / 492 MB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003625/0.1418, allocations: 99.81 kB / 492 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.954e-05/0.1418, allocations: 11.98 kB / 492.1 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.142, allocations: 31.83 kB / 492.1 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.244e-05/0.1421, allocations: 20.08 kB / 492.1 MB, free: 8.523 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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.0001533/0.1422, allocations: 157.6 kB / 492.3 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.1423, allocations: 27.66 kB / 492.3 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.91e-05/0.1424, allocations: 37.7 kB / 492.3 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.1424, allocations: 8 kB / 492.3 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.1425, allocations: 0 / 492.3 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.1425, allocations: 3.984 kB / 492.3 MB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001596/0.1441, allocations: 0.9858 MB / 493.3 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.1441, allocations: 4 kB / 493.3 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003566/0.1445, allocations: 83.94 kB / 493.4 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.301e-06/0.1445, allocations: 4 kB / 493.4 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.501e-05/0.1445, allocations: 11.94 kB / 493.4 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.145e-06/0.1445, allocations: 3.984 kB / 493.4 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.1445, allocations: 4 kB / 493.4 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.1456, allocations: 0.7173 MB / 494.2 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.841e-05/0.1457, allocations: 100.7 kB / 494.3 MB, free: 6.266 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.518e-05/0.1457, allocations: 20 kB / 494.3 MB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002757/0.146, allocations: 19.97 kB / 494.3 MB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.781e-05/0.1461, allocations: 27.91 kB / 494.3 MB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.351e-05/0.1461, allocations: 8 kB / 494.3 MB, free: 6.191 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001532/0.1463, allocations: 164.5 kB / 494.5 MB, free: 6.035 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1463, allocations: 0 / 494.5 MB, free: 6.035 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004847/0.1468, allocations: 64 kB / 494.5 MB, free: 5.973 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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.001393/0.1482, allocations: 1.271 MB / 495.8 MB, free: 4.668 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006905/0.1489, allocations: 293.2 kB / 496.1 MB, free: 4.383 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1489, allocations: 0 / 496.1 MB, free: 4.383 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002877/0.1492, allocations: 131.8 kB / 496.2 MB, free: 4.254 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006786/0.1499, allocations: 47.44 kB / 496.3 MB, free: 4.211 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004929/0.1548, allocations: 3.497 MB / 499.8 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004871/0.1554, allocations: 0.772 MB / 0.4888 GB, free: 15.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001744/0.1555, allocations: 30.97 kB / 0.4888 GB, free: 15.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.1558, allocations: 103.9 kB / 0.4889 GB, free: 15.56 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1558, allocations: 0 / 0.4889 GB, free: 15.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03112/0.1869, allocations: 5.275 MB / 0.4941 GB, free: 10.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.977/8.164, allocations: 7.922 kB / 0.4941 GB, free: 10.36 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe 2>&1)