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.001062/0.001062, allocations: 98.98 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001606/0.001606, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 246 MB, free: 10.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2181/0.2181, allocations: 45.91 MB / 344.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002644/0.0002644, allocations: 4 kB / 418.2 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1337, allocations: 63.47 MB / 481.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0006043/0.1343, allocations: 207 kB / 481.8 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000528/0.1348, allocations: 230.1 kB / 482.1 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.675e-05/0.1349, allocations: 0 / 482.1 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.141e-05/0.1349, allocations: 0 / 482.1 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.761e-06/0.1349, allocations: 0 / 482.1 MB, free: 4.809 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.0002604/0.1352, allocations: 47.89 kB / 482.1 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.251e-05/0.1352, allocations: 0 / 482.1 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.449e-05/0.1353, allocations: 3.984 kB / 482.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.434e-05/0.1353, allocations: 0 / 482.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.383e-05/0.1353, allocations: 0 / 482.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.005e-06/0.1353, allocations: 0 / 482.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.1355, allocations: 59.95 kB / 482.2 MB, free: 4.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.312e-06/0.1355, allocations: 3.938 kB / 482.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.713e-05/0.1355, allocations: 25.7 kB / 482.2 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.596e-05/0.1356, allocations: 43.89 kB / 482.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1356, allocations: 0 / 482.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1356, allocations: 3.938 kB / 482.2 MB, free: 4.617 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.1356, allocations: 0 / 482.2 MB, free: 4.617 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.0003248/0.136, allocations: 353.1 kB / 482.6 MB, free: 4.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.136, allocations: 8.031 kB / 482.6 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.303e-05/0.136, allocations: 38.55 kB / 482.6 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.298e-05/0.1361, allocations: 4 kB / 482.6 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001901/0.1363, allocations: 171 kB / 482.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.258e-06/0.1363, allocations: 0 / 482.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.495e-06/0.1363, allocations: 4 kB / 482.8 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.154e-05/0.1364, allocations: 29.69 kB / 482.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.373e-06/0.1364, allocations: 0 / 482.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.364e-06/0.1364, allocations: 0 / 482.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.1364, allocations: 4 kB / 482.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.819e-05/0.1364, allocations: 3.938 kB / 482.8 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001373/0.1366, allocations: 149.6 kB / 483 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.293e-05/0.1366, allocations: 22.61 kB / 483 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.417e-05/0.1367, allocations: 8.844 kB / 483 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.781e-06/0.1367, allocations: 0 / 483 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.078e-05/0.1367, allocations: 56.27 kB / 483.1 MB, free: 3.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/0.1367, allocations: 0 / 483.1 MB, free: 3.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001772/0.1369, allocations: 67.41 kB / 483.1 MB, free: 3.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.391e-05/0.137, allocations: 81.11 kB / 483.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.602e-05/0.1371, allocations: 101.8 kB / 483.3 MB, free: 3.312 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.1371, allocations: 25.7 kB / 483.4 MB, free: 3.281 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.837e-05/0.1372, allocations: 80.14 kB / 483.4 MB, free: 3.199 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.571e-05/0.1372, allocations: 0 / 483.4 MB, free: 3.199 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.165e-06/0.1372, allocations: 0 / 483.4 MB, free: 3.199 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.1373, allocations: 310.8 kB / 483.7 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.06e-05/0.1373, allocations: 4.125 kB / 483.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.23e-06/0.1374, allocations: 4 kB / 483.7 MB, free: 2.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.153e-05/0.1374, allocations: 29.66 kB / 483.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1374, allocations: 0 / 483.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.809e-05/0.1375, allocations: 71.33 kB / 483.8 MB, free: 2.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.683e-05/0.1375, allocations: 29.7 kB / 483.9 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.1376, allocations: 0 / 483.9 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.1376, allocations: 4 kB / 483.9 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.1376, allocations: 0 / 483.9 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.1376, allocations: 0 / 483.9 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.8e-05/0.1376, allocations: 4.094 kB / 483.9 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-06/0.1376, allocations: 0 / 483.9 MB, free: 2.719 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 0.0001186/0.1378, allocations: 139.5 kB / 484 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.733e-06/0.1378, allocations: 0 / 484 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.699e-06/0.1378, allocations: 11.05 kB / 484 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1378, allocations: 0 / 484 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.1378, allocations: 0 / 484 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1378, allocations: 0 / 484 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.1379, allocations: 145.7 kB / 484.2 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1379, allocations: 7.953 kB / 484.2 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-07/0.1379, allocations: 0 / 484.2 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.1379, allocations: 0 / 484.2 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.138, allocations: 0 / 484.2 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.138, allocations: 3.984 kB / 484.2 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.138, allocations: 4 kB / 484.2 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.092e-05/0.1381, allocations: 86.78 kB / 484.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.88e-05/0.1381, allocations: 89.23 kB / 484.4 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.465e-05/0.1381, allocations: 8.031 kB / 484.4 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.055e-05/0.1382, allocations: 4 kB / 484.4 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.631e-05/0.1382, allocations: 0 / 484.4 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.1382, allocations: 7.938 kB / 484.4 MB, free: 2.117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.7e-05/0.1382, allocations: 75.28 kB / 484.4 MB, free: 2.043 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1382, allocations: 0 / 484.4 MB, free: 2.043 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002494/0.1385, allocations: 20 kB / 484.5 MB, free: 2.023 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.0009231/0.1394, allocations: 0.8028 MB / 485.3 MB, free: 1.242 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.542e-05/0.1395, allocations: 63.33 kB / 485.3 MB, free: 1.168 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1395, allocations: 0 / 485.3 MB, free: 1.168 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.216e-05/0.1396, allocations: 55.41 kB / 485.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001243/0.1397, allocations: 0 / 485.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004098/0.1401, allocations: 124.5 kB / 485.5 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.1405, allocations: 0.6692 MB / 486.2 MB, free: 248 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.831e-06/0.1405, allocations: 0 / 486.2 MB, free: 248 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.577e-05/0.1405, allocations: 11.38 kB / 486.2 MB, free: 236 kB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1405, allocations: 0 / 486.2 MB, free: 236 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01282/0.1533, allocations: 1.388 MB / 487.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000194/0.1536, allocations: 219.3 kB / 487.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.812/1.965, allocations: 0 / 487.8 MB, free: 14.7 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