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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001413/0.001413, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.2 MB / 245 MB, free: 5.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009832/0.0009832, allocations: 90.97 kB / 297.3 MB, free: 6 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3765/0.3765, allocations: 45.24 MB / 394.7 MB, free: 31.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004274/0.0004277, allocations: 4.219 kB / 468.5 MB, free: 7.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4754/0.4758, allocations: 63.25 MB / 0.5193 GB, free: 37.51 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1227/0.5986, allocations: 89.83 MB / 0.607 GB, free: 13.62 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/0.5989, allocations: 71.94 kB / 0.6071 GB, free: 13.55 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01583/0.6148, allocations: 5.019 MB / 0.612 GB, free: 8.508 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.527e-06/0.6148, allocations: 0 / 0.612 GB, free: 8.508 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.501e-05/0.6149, allocations: 4.219 kB / 0.612 GB, free: 8.504 MB / 426.7 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.001138/0.616, allocations: 0.5611 MB / 0.6125 GB, free: 7.895 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.726e-05/0.6161, allocations: 12.03 kB / 0.6125 GB, free: 7.883 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001123/0.6162, allocations: 58.53 kB / 0.6126 GB, free: 7.816 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003018/0.6165, allocations: 59.56 kB / 0.6126 GB, free: 7.758 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.617, allocations: 247.6 kB / 0.6129 GB, free: 7.477 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.617, allocations: 20.56 kB / 0.6129 GB, free: 7.457 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.261e-05/0.6171, allocations: 35.91 kB / 0.6129 GB, free: 7.422 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005702/0.6176, allocations: 281.9 kB / 0.6132 GB, free: 7.121 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.395e-05/0.6177, allocations: 4 kB / 0.6132 GB, free: 7.117 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.6e-05/0.6177, allocations: 12 kB / 0.6132 GB, free: 7.105 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.6177, allocations: 8 kB / 0.6132 GB, free: 7.098 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005505/0.6183, allocations: 203.7 kB / 0.6134 GB, free: 6.898 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002103/0.6204, allocations: 1.298 MB / 0.6147 GB, free: 5.496 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004956/0.6209, allocations: 266.4 kB / 0.6149 GB, free: 5.199 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/0.621, allocations: 4 kB / 0.6149 GB, free: 5.195 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.621, allocations: 34.72 kB / 0.615 GB, free: 5.152 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 4.108e-06/0.621, allocations: 0 / 0.615 GB, free: 5.152 MB / 426.7 MB Notification: Performance of matching and sorting (n=32): time 0.003502/0.6245, allocations: 1.627 MB / 0.6166 GB, free: 3.316 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001441/0.6247, allocations: 140.5 kB / 0.6167 GB, free: 3.148 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003044/0.625, allocations: 192.2 kB / 0.6169 GB, free: 2.949 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.745e-05/0.6251, allocations: 29.7 kB / 0.6169 GB, free: 2.914 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.6252, allocations: 188.3 kB / 0.6171 GB, free: 2.727 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.6254, allocations: 114.3 kB / 0.6172 GB, free: 2.613 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.82e-05/0.6254, allocations: 8 kB / 0.6172 GB, free: 2.605 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.6256, allocations: 338.8 kB / 0.6175 GB, free: 2.266 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002753/0.6259, allocations: 116.8 kB / 0.6176 GB, free: 2.152 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000399/0.6263, allocations: 245.5 kB / 0.6179 GB, free: 1.855 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003067/0.6266, allocations: 143.8 kB / 0.618 GB, free: 1.715 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.6266, allocations: 4 kB / 0.618 GB, free: 1.711 MB / 426.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000877/0.6275, allocations: 410.3 kB / 0.6184 GB, free: 1.305 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.6275, allocations: 8 kB / 0.6184 GB, free: 1.297 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.6276, allocations: 4 kB / 0.6184 GB, free: 1.293 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.479e-05/0.6276, allocations: 8 kB / 0.6184 GB, free: 1.285 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004081/0.628, allocations: 104.2 kB / 0.6185 GB, free: 1.184 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.648e-05/0.628, allocations: 16.7 kB / 0.6185 GB, free: 1.168 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/0.6283, allocations: 35.98 kB / 0.6186 GB, free: 1.133 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.281e-05/0.6283, allocations: 19.94 kB / 0.6186 GB, free: 1.113 MB / 426.7 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.000205/0.6285, allocations: 157.6 kB / 0.6187 GB, free: 0.9492 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.6287, allocations: 31.75 kB / 0.6188 GB, free: 0.918 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.211e-05/0.6288, allocations: 37.7 kB / 0.6188 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.6288, allocations: 4 kB / 0.6188 GB, free: 0.875 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/0.6288, allocations: 4 kB / 0.6188 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.6288, allocations: 3.984 kB / 0.6188 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00179/0.6306, allocations: 1.002 MB / 0.6198 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/0.6306, allocations: 8.062 kB / 0.6198 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003918/0.631, allocations: 83.95 kB / 0.6199 GB, free: 15.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-06/0.6311, allocations: 4 kB / 0.6199 GB, free: 15.71 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.6311, allocations: 15.94 kB / 0.6199 GB, free: 15.69 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.6311, allocations: 3.938 kB / 0.6199 GB, free: 15.69 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.6311, allocations: 4 kB / 0.6199 GB, free: 15.68 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.6323, allocations: 0.8276 MB / 0.6207 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.908e-05/0.6324, allocations: 96.83 kB / 0.6208 GB, free: 14.69 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.192e-05/0.6324, allocations: 8.062 kB / 0.6208 GB, free: 14.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002996/0.6327, allocations: 31.97 kB / 0.6208 GB, free: 14.65 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.6328, allocations: 23.92 kB / 0.6209 GB, free: 14.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/0.6329, allocations: 12 kB / 0.6209 GB, free: 14.61 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001822/0.633, allocations: 156.5 kB / 0.621 GB, free: 14.46 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.1e-07/0.6331, allocations: 0 / 0.621 GB, free: 14.46 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000606/0.6337, allocations: 72 kB / 0.6211 GB, free: 14.39 MB / 442.7 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.001767/0.6354, allocations: 1.708 MB / 0.6228 GB, free: 12.62 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0007388/0.6362, allocations: 296.3 kB / 0.623 GB, free: 12.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.6362, allocations: 0 / 0.623 GB, free: 12.34 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003115/0.6365, allocations: 148 kB / 0.6232 GB, free: 12.19 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004849/0.637, allocations: 38.47 kB / 0.6232 GB, free: 12.16 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005226/0.6423, allocations: 5.033 MB / 0.6281 GB, free: 6.965 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004976/0.6428, allocations: 0.78 MB / 0.6289 GB, free: 6.16 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001904/0.643, allocations: 34.95 kB / 0.6289 GB, free: 6.121 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.6432, allocations: 91.41 kB / 0.629 GB, free: 6.031 MB / 442.7 MB Notification: Performance of SimCode: time 1.112e-06/0.6432, allocations: 0 / 0.629 GB, free: 6.031 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02215/0.6653, allocations: 4.745 MB / 0.6337 GB, free: 1.402 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002284/0.6656, allocations: 171.5 kB / 0.6338 GB, free: 1.156 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.1/2.766, allocations: 0 / 0.6338 GB, free: 1.156 MB / 442.7 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