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.001752/0.001752, allocations: 103.7 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.002074/0.002074, allocations: 212.6 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.477/1.477, 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.2225/0.2225, 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.002538/0.002539, allocations: 80.42 kB / 417.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1233, allocations: 62.44 MB / 480.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004834/0.1282, allocations: 2.646 MB / 482.8 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.1299, allocations: 0.7245 MB / 483.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003005/0.1302, allocations: 11.94 kB / 483.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000224/0.1305, allocations: 35.53 kB / 483.6 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002727/0.1308, allocations: 91.2 kB / 483.7 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003814/0.1312, allocations: 103.8 kB / 483.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004609/0.1316, allocations: 326.6 kB / 484.1 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002036/0.1319, allocations: 81.92 kB / 484.2 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000297/0.1322, allocations: 131.6 kB / 484.3 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002102/0.1324, allocations: 135.3 kB / 484.5 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.737e-05/0.1324, allocations: 24 kB / 484.5 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.638e-05/0.1325, allocations: 28 kB / 484.5 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.353e-05/0.1326, allocations: 55.78 kB / 484.6 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.1328, allocations: 151.1 kB / 484.7 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003624/0.1331, allocations: 303.1 kB / 485 MB, free: 336 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1332, allocations: 0 / 485 MB, free: 336 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1332, allocations: 0 / 485 MB, free: 336 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.686e-05/0.1332, allocations: 0 / 485 MB, free: 336 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.001143/0.1343, allocations: 0.5924 MB / 485.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.1344, allocations: 8.031 kB / 485.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.093e-05/0.1345, allocations: 58.73 kB / 485.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002888/0.1348, allocations: 52.53 kB / 485.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003969/0.1352, allocations: 272.6 kB / 486 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.1352, allocations: 16.94 kB / 486 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.348e-05/0.1353, allocations: 28.38 kB / 486 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005031/0.1358, allocations: 289.9 kB / 486.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.484e-05/0.1358, allocations: 7.906 kB / 486.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.456e-05/0.1359, allocations: 12 kB / 486.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.1359, allocations: 4 kB / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004284/0.1363, allocations: 187.8 kB / 486.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001821/0.1381, allocations: 1.317 MB / 487.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004423/0.1386, allocations: 238.4 kB / 488.1 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002116/0.1388, allocations: 99.52 kB / 488.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.009e-05/0.1389, allocations: 8 kB / 488.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.1389, allocations: 38.55 kB / 488.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.994e-06/0.1389, allocations: 4 kB / 488.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002934/0.1418, allocations: 1.565 MB / 489.8 MB, free: 11.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/0.142, allocations: 136.5 kB / 489.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003053/0.1423, allocations: 232.9 kB / 490.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.207e-05/0.1423, allocations: 33.64 kB / 490.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001911/0.1425, allocations: 176.2 kB / 490.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.1427, allocations: 114.3 kB / 490.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.1428, allocations: 74.03 kB / 490.5 MB, free: 10.26 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.143, allocations: 338.8 kB / 490.9 MB, free: 9.918 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002815/0.1433, allocations: 104.8 kB / 491 MB, free: 9.816 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003891/0.1437, allocations: 231.8 kB / 491.2 MB, free: 9.527 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006877/0.1444, allocations: 377.7 kB / 491.6 MB, free: 9.098 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1444, allocations: 0 / 491.6 MB, free: 9.098 MB / 366.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008324/0.1453, allocations: 392.7 kB / 491.9 MB, free: 8.707 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.1453, allocations: 8 kB / 491.9 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.1453, allocations: 4.406 kB / 492 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.1453, allocations: 8 kB / 492 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003818/0.1457, allocations: 100.1 kB / 492.1 MB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.722e-05/0.1457, allocations: 12.06 kB / 492.1 MB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000221/0.146, allocations: 31.89 kB / 492.1 MB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.165e-05/0.146, allocations: 20 kB / 492.1 MB, free: 8.527 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.0001605/0.1462, allocations: 157.6 kB / 492.3 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.1463, allocations: 31.66 kB / 492.3 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.259e-05/0.1464, allocations: 37.7 kB / 492.3 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.1464, allocations: 8 kB / 492.4 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.1464, allocations: 0 / 492.4 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.1464, allocations: 0 / 492.4 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001536/0.148, allocations: 0.9895 MB / 493.3 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.148, allocations: 4.062 kB / 493.3 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003686/0.1483, allocations: 83.88 kB / 493.4 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-06/0.1484, allocations: 4 kB / 493.4 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/0.1484, allocations: 7.938 kB / 493.4 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.1484, allocations: 4 kB / 493.4 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1484, allocations: 4 kB / 493.4 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.1495, allocations: 0.7173 MB / 494.2 MB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.712e-05/0.1496, allocations: 108.7 kB / 494.3 MB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.611e-05/0.1497, allocations: 12 kB / 494.3 MB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002876/0.15, allocations: 19.98 kB / 494.3 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.646e-05/0.1501, allocations: 24.2 kB / 494.3 MB, free: 6.207 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.126e-05/0.1501, allocations: 11.98 kB / 494.3 MB, free: 6.195 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001523/0.1503, allocations: 160.5 kB / 494.5 MB, free: 6.043 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1503, allocations: 0 / 494.5 MB, free: 6.043 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004945/0.1508, allocations: 68 kB / 494.6 MB, free: 5.977 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.001372/0.1521, allocations: 1.271 MB / 495.8 MB, free: 4.672 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007266/0.1529, allocations: 288.2 kB / 496.1 MB, free: 4.391 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.1529, allocations: 0 / 496.1 MB, free: 4.391 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003138/0.1532, allocations: 140.9 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.0007211/0.154, allocations: 46.58 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.00504/0.159, 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.0004379/0.1595, allocations: 0.7681 MB / 0.4888 GB, free: 15.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001593/0.1596, allocations: 34.95 kB / 0.4889 GB, free: 15.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001626/0.1598, allocations: 103.3 kB / 0.489 GB, free: 15.56 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1598, allocations: 0 / 0.489 GB, free: 15.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03036/0.1902, allocations: 5.259 MB / 0.4941 GB, free: 10.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.982/8.172, allocations: 18.91 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestSpeed.pipe 2>&1)