Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.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.TestStrings,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009365/0.0009365, allocations: 97.25 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009735/0.0009736, allocations: 200.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2017/0.2017, allocations: 45.92 MB / 344 MB, free: 12.11 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002422/0.0002422, allocations: 4 kB / 418 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1193, allocations: 63.46 MB / 481.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.000536/0.1199, allocations: 202.9 kB / 481.7 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00203/0.122, allocations: 1.234 MB / 482.9 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.214e-05/0.122, allocations: 0 / 482.9 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.2e-05/0.122, allocations: 0 / 482.9 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.188e-06/0.122, allocations: 0 / 482.9 MB, free: 3.848 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:4:3-219:14:writable] Warning: Pure function ‘ModelicaTest.Utilities.Strings‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.1231, allocations: 434.9 kB / 483.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.587e-05/0.1231, allocations: 8 kB / 483.4 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.85e-05/0.1231, allocations: 3.938 kB / 483.4 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.295e-05/0.1232, allocations: 0 / 483.4 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.336e-05/0.1232, allocations: 7.969 kB / 483.4 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.681e-06/0.1232, allocations: 0 / 483.4 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009666/0.1242, allocations: 0.6438 MB / 484 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.518e-06/0.1242, allocations: 0 / 484 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.604e-05/0.1242, allocations: 33.7 kB / 484.1 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004613/0.1247, allocations: 351.4 kB / 484.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.933e-06/0.1247, allocations: 0 / 484.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1247, allocations: 0 / 484.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.366e-06/0.1247, allocations: 0 / 484.4 MB, free: 2.375 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.0003916/0.1251, allocations: 465 kB / 484.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.1252, allocations: 8.031 kB / 484.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.654e-05/0.1252, allocations: 34.55 kB / 484.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.848e-05/0.1252, allocations: 3.938 kB / 484.9 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.794e-05/0.1253, allocations: 163 kB / 485.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.824e-06/0.1253, allocations: 4 kB / 485.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.091e-06/0.1253, allocations: 4 kB / 485.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.261e-05/0.1254, allocations: 33.64 kB / 485.1 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.298e-06/0.1254, allocations: 0 / 485.1 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.741e-06/0.1254, allocations: 0 / 485.1 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.1254, allocations: 4 kB / 485.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.375e-05/0.1254, allocations: 0 / 485.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001117/0.1256, allocations: 149.6 kB / 485.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.536e-05/0.1256, allocations: 26.61 kB / 485.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.326e-06/0.1256, allocations: 0 / 485.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.862e-05/0.1256, allocations: 64.19 kB / 485.3 MB, free: 1.254 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.1257, allocations: 0 / 485.3 MB, free: 1.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001354/0.1258, allocations: 63.45 kB / 485.4 MB, free: 1.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.128e-05/0.1258, allocations: 77.11 kB / 485.5 MB, free: 1.086 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.966e-05/0.1259, allocations: 97.8 kB / 485.6 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.1259, allocations: 29.83 kB / 485.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.45e-05/0.1259, allocations: 84.14 kB / 485.7 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.221e-05/0.126, allocations: 0 / 485.7 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.673e-06/0.126, allocations: 0 / 485.7 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.248e-05/0.1261, allocations: 310.8 kB / 486 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.342e-06/0.1261, allocations: 0 / 486 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.021e-06/0.1261, allocations: 0 / 486 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.292e-05/0.1261, allocations: 33.64 kB / 486 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.1261, allocations: 4.016 kB / 486 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.158e-05/0.1262, allocations: 71.39 kB / 486.1 MB, free: 432 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.1262, allocations: 29.7 kB / 486.1 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.1262, allocations: 0 / 486.1 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.884e-06/0.1262, allocations: 0 / 486.1 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.1262, allocations: 0 / 486.1 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.216e-06/0.1263, allocations: 0 / 486.1 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.367e-05/0.1263, allocations: 4 kB / 486.1 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.1263, allocations: 0 / 486.1 MB, free: 392 kB / 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 7.837e-05/0.1264, allocations: 139.6 kB / 486.3 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.486e-06/0.1264, allocations: 7.953 kB / 486.3 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.392e-06/0.1264, allocations: 3.125 kB / 486.3 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.1264, allocations: 0 / 486.3 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.1264, allocations: 0 / 486.3 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-06/0.1264, allocations: 0 / 486.3 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.118e-05/0.1265, allocations: 149.7 kB / 486.4 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1265, allocations: 4 kB / 486.4 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.603e-06/0.1265, allocations: 7.891 kB / 486.4 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1265, allocations: 3.984 kB / 486.4 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.231e-06/0.1265, allocations: 0 / 486.4 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.1265, allocations: 7.938 kB / 486.5 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1265, allocations: 0 / 486.5 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.746e-05/0.1266, allocations: 90.83 kB / 486.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.508e-05/0.1267, allocations: 85.3 kB / 486.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.249e-05/0.1267, allocations: 3.953 kB / 486.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.065e-05/0.1267, allocations: 4 kB / 486.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.035e-05/0.1267, allocations: 0 / 486.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.1267, allocations: 7.969 kB / 486.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.259e-05/0.1268, allocations: 75.28 kB / 486.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1268, allocations: 0 / 486.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004567/0.1272, allocations: 204 kB / 486.9 MB, free: 15.5 MB / 366.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.00134/0.1286, allocations: 1.147 MB / 488.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.787e-05/0.1287, allocations: 55.41 kB / 488.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1287, allocations: 4.062 kB / 488.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.727e-05/0.1287, allocations: 63.39 kB / 488.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.913e-05/0.1288, allocations: 3.953 kB / 488.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004072/0.1292, allocations: 196.3 kB / 488.4 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002384/0.1295, allocations: 0.6692 MB / 489 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.632e-06/0.1295, allocations: 3.938 kB / 489 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.854e-05/0.1295, allocations: 11.44 kB / 489.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1295, allocations: 0 / 489.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0164/0.1459, allocations: 5.099 MB / 494.2 MB, free: 8.289 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001716/0.1461, allocations: 214 kB / 494.4 MB, free: 8.043 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.904/2.05, allocations: 3.938 kB / 494.4 MB, free: 8.039 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestStrings_res.mat does not exist to compare? outputFormat=mat