Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.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.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00156/0.00156, allocations: 198.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.528/1.528, allocations: 227.2 MB / 245 MB, free: 5.785 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001181/0.001181, allocations: 94.33 kB / 297.2 MB, free: 5.969 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.51/0.51, allocations: 45.23 MB / 394.6 MB, free: 31.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003081/0.0003081, allocations: 4 kB / 468.5 MB, free: 7.648 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.417/0.4173, allocations: 63.25 MB / 0.5193 GB, free: 37.38 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1335/0.5509, allocations: 90.44 MB / 0.6076 GB, free: 12.99 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/0.5512, allocations: 67.94 kB / 0.6076 GB, free: 12.93 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03911/0.5903, allocations: 13.21 MB / 0.6205 GB, free: 15.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5904, allocations: 0 / 0.6205 GB, free: 15.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.5904, allocations: 4 kB / 0.6206 GB, free: 15.69 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0007054/0.5911, allocations: 464.7 kB / 0.621 GB, free: 15.18 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.5911, allocations: 12.03 kB / 0.621 GB, free: 15.17 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.852e-05/0.5912, allocations: 105.8 kB / 0.6211 GB, free: 15.06 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.135e-05/0.5913, allocations: 79.28 kB / 0.6212 GB, free: 14.98 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/0.5914, allocations: 246.2 kB / 0.6214 GB, free: 14.7 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.185e-05/0.5915, allocations: 150.6 kB / 0.6216 GB, free: 14.55 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.155e-05/0.5916, allocations: 158.6 kB / 0.6217 GB, free: 14.39 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.76e-05/0.5917, allocations: 108.9 kB / 0.6218 GB, free: 14.28 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.443e-05/0.5917, allocations: 75.28 kB / 0.6219 GB, free: 14.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.413e-05/0.5918, allocations: 150.6 kB / 0.622 GB, free: 14.06 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.793e-05/0.5919, allocations: 150.6 kB / 0.6222 GB, free: 13.91 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.706e-05/0.5919, allocations: 150.6 kB / 0.6223 GB, free: 13.76 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003106/0.5923, allocations: 453.9 kB / 0.6228 GB, free: 13.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.204e-05/0.5924, allocations: 169.1 kB / 0.6229 GB, free: 13.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.5924, allocations: 75.28 kB / 0.623 GB, free: 13.02 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.997e-05/0.5925, allocations: 135.5 kB / 0.6231 GB, free: 12.87 MB / 442.7 MB Notification: Performance of pre-optimization done (n=0): time 8.42e-07/0.5925, allocations: 4 kB / 0.6231 GB, free: 12.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=0): time 7.947e-05/0.5926, allocations: 33.7 kB / 0.6232 GB, free: 12.83 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.016e-05/0.5927, allocations: 152.4 kB / 0.6233 GB, free: 12.66 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.606e-05/0.5927, allocations: 85 kB / 0.6234 GB, free: 12.57 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.5928, allocations: 25.7 kB / 0.6234 GB, free: 12.54 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.366e-05/0.5928, allocations: 84.14 kB / 0.6235 GB, free: 12.45 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.763e-06/0.5928, allocations: 3.938 kB / 0.6235 GB, free: 12.45 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.51e-07/0.5928, allocations: 0 / 0.6235 GB, free: 12.45 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.593, allocations: 314.8 kB / 0.6238 GB, free: 12.13 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.947e-06/0.593, allocations: 0 / 0.6238 GB, free: 12.13 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.932e-05/0.593, allocations: 0 / 0.6238 GB, free: 12.13 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.16e-05/0.593, allocations: 79.28 kB / 0.6239 GB, free: 12.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.061e-05/0.5931, allocations: 79.23 kB / 0.6239 GB, free: 11.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.375e-05/0.5931, allocations: 29.69 kB / 0.624 GB, free: 11.94 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.277e-05/0.5932, allocations: 83.28 kB / 0.624 GB, free: 11.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.2e-05/0.5932, allocations: 83.16 kB / 0.6241 GB, free: 11.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.797e-05/0.5933, allocations: 162.6 kB / 0.6243 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.737e-05/0.5934, allocations: 75.28 kB / 0.6244 GB, free: 11.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.235e-05/0.5934, allocations: 158.5 kB / 0.6245 GB, free: 11.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.951e-05/0.5935, allocations: 75.28 kB / 0.6246 GB, free: 11.31 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.293e-05/0.5936, allocations: 79.22 kB / 0.6247 GB, free: 11.23 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * 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.0001623/0.5937, allocations: 268.4 kB / 0.6249 GB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.189e-05/0.5938, allocations: 108.9 kB / 0.625 GB, free: 10.85 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.67e-05/0.5939, allocations: 108 kB / 0.6251 GB, free: 10.73 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001143/0.594, allocations: 180.3 kB / 0.6253 GB, free: 10.55 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.621e-05/0.5941, allocations: 176.3 kB / 0.6255 GB, free: 10.37 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.171e-05/0.5942, allocations: 184.2 kB / 0.6256 GB, free: 10.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002726/0.5945, allocations: 406.6 kB / 0.626 GB, free: 9.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.415e-05/0.5945, allocations: 104.9 kB / 0.6261 GB, free: 9.621 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.059e-05/0.5946, allocations: 108.9 kB / 0.6262 GB, free: 9.508 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.6e-05/0.5947, allocations: 184.2 kB / 0.6264 GB, free: 9.32 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.069e-05/0.5948, allocations: 184.2 kB / 0.6266 GB, free: 9.133 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.569e-05/0.5949, allocations: 180.3 kB / 0.6267 GB, free: 8.949 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.722e-05/0.595, allocations: 180.2 kB / 0.6269 GB, free: 8.766 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.5952, allocations: 307.8 kB / 0.6272 GB, free: 8.441 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.5953, allocations: 182 kB / 0.6274 GB, free: 8.238 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.398e-05/0.5954, allocations: 188.2 kB / 0.6276 GB, free: 8.047 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.869e-05/0.5955, allocations: 109.3 kB / 0.6277 GB, free: 7.934 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.946e-05/0.5956, allocations: 184.2 kB / 0.6278 GB, free: 7.746 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.915e-05/0.5956, allocations: 101 kB / 0.6279 GB, free: 7.641 MB / 442.7 MB Notification: Performance of sorting global known variables: time 4.162e-05/0.5957, allocations: 79.33 kB / 0.628 GB, free: 7.562 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.124e-05/0.5957, allocations: 0 / 0.628 GB, free: 7.562 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009058/0.5966, allocations: 179.7 kB / 0.6282 GB, free: 7.387 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (0): * Single equations (assignments): 0 * 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.001346/0.598, allocations: 1.091 MB / 0.6293 GB, free: 6.277 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 6.027e-05/0.598, allocations: 0 / 0.6293 GB, free: 6.277 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.5981, allocations: 4 kB / 0.6293 GB, free: 6.273 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 2.745e-06/0.5981, allocations: 0 / 0.6293 GB, free: 6.273 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.5984, allocations: 0.5223 MB / 0.6298 GB, free: 5.746 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004491/0.5988, allocations: 279.3 kB / 0.63 GB, free: 5.43 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003281/0.5992, allocations: 0.677 MB / 0.6307 GB, free: 4.727 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 7.684e-06/0.5992, allocations: 0 / 0.6307 GB, free: 4.727 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.303e-05/0.5992, allocations: 7.438 kB / 0.6307 GB, free: 4.723 MB / 442.7 MB Notification: Performance of SimCode: time 2.21e-07/0.5992, allocations: 0 / 0.6307 GB, free: 4.723 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01727/0.6165, allocations: 3.682 MB / 0.6343 GB, free: 1.141 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/0.6167, allocations: 201.9 kB / 0.6345 GB, free: 0.9023 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.681/2.298, allocations: 0 / 0.6345 GB, free: 0.9023 MB / 442.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat does not exist to compare? outputFormat=mat