Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001692/0.001692, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001808/0.001808, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2399/0.2399, allocations: 46.11 MB / 344.2 MB, free: 11.59 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002322/0.002322, allocations: 86.12 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1211, allocations: 62.43 MB / 480.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001612/0.1228, allocations: 493.9 kB / 480.7 MB, free: 4.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002352/0.1251, allocations: 1.291 MB / 482 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.344e-05/0.1252, allocations: 4 kB / 482 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.043e-05/0.1252, allocations: 0 / 482 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.298e-06/0.1252, allocations: 0 / 482 MB, free: 3.398 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.001628/0.1268, allocations: 0.5764 MB / 482.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.135e-05/0.1269, allocations: 4 kB / 482.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.537e-05/0.127, allocations: 4 kB / 482.6 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.745e-05/0.127, allocations: 0 / 482.6 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.533e-05/0.127, allocations: 7.984 kB / 482.6 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.181e-06/0.127, allocations: 0 / 482.6 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01689/0.1439, allocations: 2.48 MB / 485 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.081e-05/0.1439, allocations: 0 / 485 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.785e-05/0.144, allocations: 0 / 485 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003333/0.1443, allocations: 167.8 kB / 485.2 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1443, allocations: 0 / 485.2 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1443, allocations: 3.938 kB / 485.2 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.1444, allocations: 0 / 485.2 MB, free: 0.6719 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.0003894/0.1448, allocations: 385.3 kB / 485.6 MB, free: 248 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.1449, allocations: 8.031 kB / 485.6 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.145e-05/0.1449, allocations: 30.75 kB / 485.6 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.317e-05/0.1449, allocations: 0.9375 kB / 485.6 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/0.145, allocations: 160.4 kB / 485.8 MB, free: 0 / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.1451, allocations: 12.34 kB / 485.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.686e-06/0.1451, allocations: 4.375 kB / 485.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.54e-05/0.1452, allocations: 33.64 kB / 485.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.1452, allocations: 7.938 kB / 485.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.673e-06/0.1452, allocations: 0 / 485.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.1452, allocations: 0 / 485.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.025e-05/0.1452, allocations: 4 kB / 485.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001348/0.1454, allocations: 141.7 kB / 486 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.75e-05/0.1454, allocations: 26.55 kB / 486 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.38e-05/0.1454, allocations: 4.859 kB / 486 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.608e-06/0.1455, allocations: 3.938 kB / 486 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.278e-05/0.1455, allocations: 68.31 kB / 486.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1455, allocations: 3.938 kB / 486.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001577/0.1457, allocations: 59.41 kB / 486.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.292e-05/0.1457, allocations: 77.11 kB / 486.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.519e-05/0.1458, allocations: 89.98 kB / 486.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.1458, allocations: 29.7 kB / 486.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.815e-05/0.1459, allocations: 80.14 kB / 486.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.693e-05/0.1459, allocations: 0 / 486.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.25e-05/0.1459, allocations: 25.64 kB / 486.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1461, allocations: 310.8 kB / 486.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.797e-06/0.1461, allocations: 3.938 kB / 486.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.19e-06/0.1461, allocations: 0 / 486.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.63e-05/0.1462, allocations: 64.33 kB / 486.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1462, allocations: 0 / 486.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.061e-05/0.1462, allocations: 71.33 kB / 486.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.096e-05/0.1463, allocations: 29.7 kB / 486.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1463, allocations: 4 kB / 486.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.1463, allocations: 0 / 486.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.62e-07/0.1463, allocations: 0 / 486.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.299e-06/0.1463, allocations: 0 / 486.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.335e-05/0.1463, allocations: 0 / 486.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.036e-06/0.1464, allocations: 0 / 486.9 MB, free: 14.69 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.771e-05/0.1465, allocations: 143.5 kB / 487 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.082e-05/0.1465, allocations: 3.938 kB / 487.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.536e-06/0.1465, allocations: 7.109 kB / 487.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.1465, allocations: 0 / 487.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1465, allocations: 0 / 487.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.1465, allocations: 4 kB / 487.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.875e-05/0.1466, allocations: 145.7 kB / 487.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.1466, allocations: 0 / 487.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.245e-06/0.1466, allocations: 3.938 kB / 487.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.1466, allocations: 4 kB / 487.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-06/0.1466, allocations: 0 / 487.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.1467, allocations: 7.984 kB / 487.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1467, allocations: 0 / 487.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001077/0.1468, allocations: 86.84 kB / 487.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.685e-05/0.1468, allocations: 89.03 kB / 487.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.166e-05/0.1468, allocations: 3.938 kB / 487.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.186e-06/0.1469, allocations: 0 / 487.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.405e-05/0.1469, allocations: 4.031 kB / 487.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.1469, allocations: 7.938 kB / 487.4 MB, free: 14.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.577e-05/0.1469, allocations: 75.28 kB / 487.5 MB, free: 14.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1469, allocations: 4 kB / 487.5 MB, free: 14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002788/0.1472, allocations: 67.98 kB / 487.6 MB, free: 13.94 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001243/0.1485, allocations: 0.9221 MB / 488.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001022/0.1486, allocations: 59.41 kB / 488.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1486, allocations: 0 / 488.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.74e-05/0.1486, allocations: 55.34 kB / 488.6 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000127/0.1488, allocations: 8.125 kB / 488.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003311/0.1491, allocations: 146.5 kB / 488.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.1494, allocations: 0.669 MB / 489.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.771e-06/0.1494, allocations: 0 / 489.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.615e-05/0.1495, allocations: 11.44 kB / 489.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1495, allocations: 0 / 489.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02503/0.1745, allocations: 3.103 MB / 492.5 MB, free: 8.977 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.991/8.166, allocations: 7.672 kB / 492.5 MB, free: 8.973 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.pipe 2>&1)