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.001255/0.001255, allocations: 93.7 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.001882/0.001881, 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.39/1.39, allocations: 227.4 MB / 246 MB, free: 11.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2199/0.2199, allocations: 45.91 MB / 344.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002483/0.0002484, allocations: 4 kB / 418.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1206, allocations: 63.47 MB / 481.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.0005657/0.1212, allocations: 203 kB / 481.8 MB, free: 5.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002363/0.1235, allocations: 1.222 MB / 483.1 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.696e-05/0.1236, allocations: 3.938 kB / 483.1 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.075e-05/0.1236, allocations: 0 / 483.1 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.575e-06/0.1236, allocations: 0 / 483.1 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.001224/0.1248, allocations: 439 kB / 483.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.733e-05/0.1249, allocations: 0 / 483.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.458e-05/0.1249, allocations: 0 / 483.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.177e-05/0.125, allocations: 15.92 kB / 483.5 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.651e-05/0.125, allocations: 0 / 483.5 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.811e-06/0.125, allocations: 4 kB / 483.5 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003183/0.1282, allocations: 1.869 MB / 485.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.457e-06/0.1282, allocations: 3.984 kB / 485.4 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.015e-05/0.1283, allocations: 25.7 kB / 485.4 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002082/0.1285, allocations: 123.8 kB / 485.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1285, allocations: 0 / 485.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.1285, allocations: 0 / 485.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.1285, allocations: 4 kB / 485.5 MB, free: 1.367 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.0003781/0.1289, allocations: 373.1 kB / 485.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.129, allocations: 8.031 kB / 485.9 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.318e-05/0.129, allocations: 30.56 kB / 485.9 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.627e-05/0.129, allocations: 0 / 485.9 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.1292, allocations: 163.1 kB / 486.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.1292, allocations: 4 kB / 486.1 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.1292, allocations: 7.953 kB / 486.1 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.804e-05/0.1293, allocations: 33.58 kB / 486.1 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.1293, allocations: 0 / 486.1 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.377e-06/0.1293, allocations: 0 / 486.1 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.1293, allocations: 4 kB / 486.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.712e-05/0.1294, allocations: 3.938 kB / 486.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001752/0.1295, allocations: 149.7 kB / 486.3 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.197e-05/0.1296, allocations: 22.61 kB / 486.3 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.51e-05/0.1296, allocations: 4.859 kB / 486.3 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.186e-06/0.1296, allocations: 0 / 486.3 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.607e-05/0.1297, allocations: 68.16 kB / 486.4 MB, free: 336 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.1297, allocations: 0 / 486.4 MB, free: 336 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000218/0.1299, allocations: 67.45 kB / 486.5 MB, free: 256 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.213e-05/0.13, allocations: 81.11 kB / 486.5 MB, free: 156 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.497e-05/0.1301, allocations: 93.98 kB / 486.6 MB, free: 52 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.1301, allocations: 25.7 kB / 486.6 MB, free: 20 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.075e-05/0.1301, allocations: 80.14 kB / 486.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.1302, allocations: 0 / 486.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.245e-06/0.1302, allocations: 0 / 486.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1303, allocations: 310.8 kB / 487 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.107e-06/0.1303, allocations: 0 / 487 MB, free: 15.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.468e-06/0.1304, allocations: 4 kB / 487 MB, free: 15.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.853e-05/0.1304, allocations: 25.77 kB / 487.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1304, allocations: 7.938 kB / 487.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.988e-05/0.1305, allocations: 67.39 kB / 487.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.011e-05/0.1305, allocations: 29.7 kB / 487.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.1306, allocations: 3.953 kB / 487.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.1306, allocations: 4 kB / 487.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.1306, allocations: 0 / 487.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.1306, allocations: 0 / 487.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.589e-05/0.1306, allocations: 0 / 487.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.1306, allocations: 0 / 487.2 MB, free: 15.46 MB / 366.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.000104/0.1307, allocations: 143.6 kB / 487.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.955e-06/0.1307, allocations: 0 / 487.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.183e-05/0.1308, allocations: 3.125 kB / 487.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1308, allocations: 3.953 kB / 487.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1308, allocations: 0 / 487.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1308, allocations: 0 / 487.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001149/0.1309, allocations: 149.7 kB / 487.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.1309, allocations: 3.984 kB / 487.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.893e-06/0.1309, allocations: 0 / 487.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1309, allocations: 3.938 kB / 487.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.1309, allocations: 4 kB / 487.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.1309, allocations: 3.938 kB / 487.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.277e-06/0.131, allocations: 11.89 kB / 487.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.922e-05/0.1311, allocations: 86.83 kB / 487.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.221e-05/0.1311, allocations: 81.02 kB / 487.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.1311, allocations: 4 kB / 487.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.886e-06/0.1312, allocations: 0 / 487.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.95e-05/0.1312, allocations: 11.97 kB / 487.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-06/0.1312, allocations: 0 / 487.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.927e-05/0.1312, allocations: 75.28 kB / 487.7 MB, free: 14.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1312, allocations: 0 / 487.7 MB, free: 14.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003075/0.1315, allocations: 71.98 kB / 487.8 MB, free: 14.71 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.001037/0.1326, allocations: 0.9243 MB / 488.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.897e-05/0.1327, allocations: 55.41 kB / 488.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1327, allocations: 0 / 488.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.693e-05/0.1327, allocations: 59.39 kB / 488.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.1329, allocations: 12 kB / 488.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003268/0.1332, allocations: 140.4 kB / 489 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.1335, allocations: 0.6692 MB / 489.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.292e-06/0.1335, allocations: 0 / 489.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.901e-05/0.1335, allocations: 11.44 kB / 489.7 MB, free: 12.78 MB / 366.1 MB Notification: Performance of SimCode: time 1.884e-06/0.1335, allocations: 3.938 kB / 489.7 MB, free: 12.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01524/0.1488, allocations: 2.714 MB / 492.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002084/0.149, allocations: 210 kB / 492.6 MB, free: 9.922 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.841/1.99, allocations: 0 / 492.6 MB, free: 9.922 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