Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.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.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001171/0.001171, allocations: 96.62 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001255, allocations: 205.7 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, 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.2385/0.2385, allocations: 45.92 MB / 344 MB, free: 12.3 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002868/0.0002868, allocations: 12 kB / 418.1 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1351, allocations: 63.46 MB / 481.5 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0006571/0.1358, allocations: 206.9 kB / 481.7 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005616/0.1364, allocations: 241.9 kB / 481.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.642e-05/0.1364, allocations: 0 / 481.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.278e-06/0.1365, allocations: 0 / 481.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.793e-06/0.1365, allocations: 4 kB / 482 MB, free: 4.855 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:398:3-453:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.Internal‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002502/0.1367, allocations: 39.83 kB / 482 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.062e-05/0.1368, allocations: 0 / 482 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.133e-05/0.1368, allocations: 4 kB / 482 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.601e-05/0.1368, allocations: 0 / 482 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.313e-05/0.1369, allocations: 0 / 482 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.065e-06/0.1369, allocations: 0 / 482 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001151/0.137, allocations: 47.89 kB / 482 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.891e-06/0.137, allocations: 0 / 482 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.45e-05/0.1371, allocations: 29.7 kB / 482.1 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.053e-05/0.1372, allocations: 35.95 kB / 482.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.1372, allocations: 4 kB / 482.1 MB, free: 4.691 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1372, allocations: 0 / 482.1 MB, free: 4.691 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.1372, allocations: 0 / 482.1 MB, free: 4.691 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002805/0.1375, allocations: 353.1 kB / 482.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.1375, allocations: 11.97 kB / 482.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.723e-05/0.1375, allocations: 34.55 kB / 482.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.295e-05/0.1376, allocations: 8 kB / 482.5 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.461e-05/0.1377, allocations: 163 kB / 482.7 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.1377, allocations: 4 kB / 482.7 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.482e-06/0.1377, allocations: 0 / 482.7 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.835e-05/0.1378, allocations: 33.64 kB / 482.7 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.1378, allocations: 4 kB / 482.7 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.131e-06/0.1378, allocations: 0 / 482.7 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1378, allocations: 0 / 482.7 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.426e-05/0.1378, allocations: 0 / 482.7 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001311/0.138, allocations: 149.6 kB / 482.9 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.904e-05/0.138, allocations: 22.61 kB / 482.9 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.775e-06/0.138, allocations: 4 kB / 482.9 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.055e-05/0.1381, allocations: 60.2 kB / 482.9 MB, free: 3.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.1381, allocations: 0 / 482.9 MB, free: 3.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001476/0.1382, allocations: 67.39 kB / 483 MB, free: 3.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.239e-05/0.1383, allocations: 77.11 kB / 483.1 MB, free: 3.508 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.268e-05/0.1384, allocations: 93.86 kB / 483.2 MB, free: 3.406 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.1384, allocations: 25.7 kB / 483.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.731e-05/0.1384, allocations: 84.14 kB / 483.3 MB, free: 3.289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.1384, allocations: 4.125 kB / 483.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.054e-06/0.1385, allocations: 0 / 483.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1386, allocations: 310.8 kB / 483.6 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.566e-06/0.1386, allocations: 0 / 483.6 MB, free: 2.973 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.805e-06/0.1386, allocations: 4 kB / 483.6 MB, free: 2.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.882e-05/0.1387, allocations: 29.64 kB / 483.6 MB, free: 2.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.1387, allocations: 3.953 kB / 483.6 MB, free: 2.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.304e-05/0.1387, allocations: 63.39 kB / 483.7 MB, free: 2.855 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/0.1388, allocations: 33.8 kB / 483.7 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.1388, allocations: 0 / 483.7 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.1388, allocations: 0 / 483.7 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.1388, allocations: 4 kB / 483.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.1388, allocations: 0 / 483.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.442e-05/0.1388, allocations: 0 / 483.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.1389, allocations: 7.984 kB / 483.7 MB, free: 2.805 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 8.338e-05/0.1389, allocations: 143.5 kB / 483.9 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.344e-06/0.139, allocations: 3.953 kB / 483.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.995e-06/0.139, allocations: 7.125 kB / 483.9 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.31e-07/0.139, allocations: 0 / 483.9 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.139, allocations: 0 / 483.9 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.139, allocations: 0 / 483.9 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001032/0.1391, allocations: 149.7 kB / 484 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.1391, allocations: 0 / 484 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.024e-06/0.1391, allocations: 3.953 kB / 484 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.1391, allocations: 0 / 484 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.27e-06/0.1391, allocations: 0 / 484 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.1391, allocations: 0 / 484 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1391, allocations: 3.938 kB / 484 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001038/0.1392, allocations: 98.81 kB / 484.1 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.588e-05/0.1393, allocations: 81.3 kB / 484.2 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.1393, allocations: 7.953 kB / 484.2 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.985e-06/0.1393, allocations: 0 / 484.2 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.608e-05/0.1393, allocations: 7.984 kB / 484.2 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.1394, allocations: 4 kB / 484.2 MB, free: 2.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.99e-05/0.1394, allocations: 75.28 kB / 484.3 MB, free: 2.125 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1394, allocations: 4.031 kB / 484.3 MB, free: 2.121 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002114/0.1396, allocations: 23.98 kB / 484.3 MB, free: 2.098 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0008127/0.1404, allocations: 0.7991 MB / 485.1 MB, free: 1.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.652e-05/0.1405, allocations: 55.41 kB / 485.2 MB, free: 1.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.1406, allocations: 4.062 kB / 485.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.85e-05/0.1406, allocations: 55.41 kB / 485.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.378e-05/0.1407, allocations: 7.891 kB / 485.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000274/0.141, allocations: 112.4 kB / 485.4 MB, free: 1.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/0.1413, allocations: 0.677 MB / 486 MB, free: 328 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.202e-06/0.1413, allocations: 0 / 486 MB, free: 328 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.284e-05/0.1413, allocations: 7.438 kB / 486 MB, free: 320 kB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1413, allocations: 3.938 kB / 486 MB, free: 316 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01184/0.1532, allocations: 1.373 MB / 487.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/0.1534, allocations: 217.7 kB / 487.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/1.912, allocations: 0 / 487.6 MB, free: 14.79 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat does not exist to compare? outputFormat=mat