Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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 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: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_trunk_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.001116/0.001116, allocations: 94.86 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001107/0.001107, allocations: 199.3 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.232/0.232, allocations: 45.92 MB / 344 MB, free: 12.34 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002908/0.0002908, allocations: 8 kB / 418 MB, free: 20.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1371, allocations: 63.47 MB / 481.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.002784/0.1399, allocations: 2.121 MB / 483.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.141, allocations: 0.6744 MB / 484.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.1411, allocations: 4 kB / 484.3 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.85e-05/0.1412, allocations: 31.72 kB / 484.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002029/0.1414, allocations: 107.6 kB / 484.5 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002194/0.1416, allocations: 59.92 kB / 484.5 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003072/0.142, allocations: 235.5 kB / 484.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.1421, allocations: 65.56 kB / 484.8 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/0.1423, allocations: 119.5 kB / 484.9 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001481/0.1425, allocations: 111.5 kB / 485 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.582e-05/0.1425, allocations: 12 kB / 485 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.467e-05/0.1426, allocations: 19.98 kB / 485.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.116e-05/0.1427, allocations: 43.78 kB / 485.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.515e-05/0.1427, allocations: 77.58 kB / 485.2 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002101/0.1429, allocations: 207.7 kB / 485.4 MB, free: 1.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.143, allocations: 0 / 485.4 MB, free: 1.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.143, allocations: 4 kB / 485.4 MB, free: 1.426 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.143, allocations: 0 / 485.4 MB, free: 1.426 MB / 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.000804/0.1438, allocations: 0.5518 MB / 485.9 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.1438, allocations: 8.031 kB / 485.9 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.581e-05/0.1439, allocations: 62.53 kB / 486 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002471/0.1442, allocations: 55.61 kB / 486.1 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003228/0.1445, allocations: 259.5 kB / 486.3 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.1445, allocations: 16.56 kB / 486.3 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.751e-05/0.1446, allocations: 24 kB / 486.4 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004715/0.1451, allocations: 293.9 kB / 486.6 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.1451, allocations: 7.906 kB / 486.6 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/0.1451, allocations: 8 kB / 486.7 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.1451, allocations: 8 kB / 486.7 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004269/0.1456, allocations: 199.7 kB / 486.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001537/0.1471, allocations: 1.321 MB / 488.2 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003989/0.1475, allocations: 246.5 kB / 488.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.1476, allocations: 12 kB / 488.4 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.1476, allocations: 38.52 kB / 488.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.303e-06/0.1476, allocations: 0 / 488.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002658/0.1503, allocations: 1.627 MB / 490.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.864e-05/0.1504, allocations: 136.5 kB / 490.2 MB, free: 12.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002027/0.1506, allocations: 221 kB / 490.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.1506, allocations: 33.7 kB / 490.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.1507, allocations: 172.2 kB / 490.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.398e-05/0.1508, allocations: 118.3 kB / 490.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.702e-05/0.1508, allocations: 12 kB / 490.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.151, allocations: 338.8 kB / 491.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002456/0.1513, allocations: 108.8 kB / 491.2 MB, free: 11.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003485/0.1516, allocations: 249.4 kB / 491.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003101/0.1519, allocations: 148.5 kB / 491.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.152, allocations: 4 kB / 491.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008018/0.1528, allocations: 417.4 kB / 492 MB, free: 10.19 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.1528, allocations: 8 kB / 492 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.1528, allocations: 8.75 kB / 492 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.765e-05/0.1528, allocations: 8 kB / 492 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003937/0.1532, allocations: 107.8 kB / 492.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.788e-05/0.1533, allocations: 11.94 kB / 492.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002149/0.1535, allocations: 31.98 kB / 492.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.153e-05/0.1535, allocations: 20.3 kB / 492.2 MB, free: 9.996 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001875/0.1537, allocations: 157.6 kB / 492.4 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.1539, allocations: 27.62 kB / 492.4 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.827e-05/0.154, allocations: 41.64 kB / 492.4 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.154, allocations: 4 kB / 492.4 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/0.154, allocations: 4 kB / 492.4 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.154, allocations: 4 kB / 492.4 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/0.1556, allocations: 1.005 MB / 493.4 MB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.1556, allocations: 3.984 kB / 493.4 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003524/0.156, allocations: 83.89 kB / 493.5 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.156, allocations: 4 kB / 493.5 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.156, allocations: 8 kB / 493.5 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.528e-06/0.156, allocations: 19.94 kB / 493.6 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.1561, allocations: 0 / 493.6 MB, free: 8.566 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.1571, allocations: 0.8199 MB / 494.4 MB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.941e-05/0.1572, allocations: 100.8 kB / 494.5 MB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.22e-05/0.1572, allocations: 8.062 kB / 494.5 MB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002723/0.1575, allocations: 23.98 kB / 494.5 MB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.961e-05/0.1576, allocations: 31.91 kB / 494.5 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.1576, allocations: 8 kB / 494.5 MB, free: 7.504 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000128/0.1577, allocations: 164.5 kB / 494.7 MB, free: 7.348 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1577, allocations: 0 / 494.7 MB, free: 7.348 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004656/0.1582, allocations: 64 kB / 494.8 MB, free: 7.285 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001445/0.1597, allocations: 1.704 MB / 496.5 MB, free: 5.527 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006255/0.1603, allocations: 296.4 kB / 496.8 MB, free: 5.238 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1603, allocations: 0 / 496.8 MB, free: 5.238 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002775/0.1606, allocations: 144.2 kB / 496.9 MB, free: 5.098 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004531/0.1611, allocations: 44.61 kB / 496.9 MB, free: 5.055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004297/0.1654, allocations: 5.017 MB / 0.4902 GB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003793/0.1658, allocations: 0.78 MB / 0.491 GB, free: 15.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001483/0.1659, allocations: 34.95 kB / 0.491 GB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.1661, allocations: 87.41 kB / 0.4911 GB, free: 14.94 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1661, allocations: 4 kB / 0.4911 GB, free: 14.94 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.016/0.1821, allocations: 4.732 MB / 0.4957 GB, free: 10.32 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/0.1823, allocations: 171.2 kB / 0.4959 GB, free: 10.08 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.915/2.098, allocations: 0 / 0.4959 GB, free: 10.08 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.mat does not exist to compare? outputFormat=mat