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.001252/0.001252, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 227.4 MB / 247 MB, free: 10.44 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.2255/0.2255, allocations: 46.11 MB / 344.3 MB, free: 11.45 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.002311/0.002311, allocations: 75.88 kB / 480.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.311, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001462/0.3125, allocations: 485.6 kB / 0.531 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002427/0.3149, allocations: 1.308 MB / 0.5323 GB, free: 12 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.092e-05/0.315, allocations: 0 / 0.5323 GB, free: 12 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.258e-05/0.315, allocations: 0 / 0.5323 GB, free: 12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.139e-06/0.315, allocations: 0 / 0.5323 GB, free: 12 MB / 398.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.001512/0.3165, allocations: 0.5725 MB / 0.5329 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.784e-05/0.3166, allocations: 9.062 kB / 0.5329 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.395e-05/0.3166, allocations: 1.094 kB / 0.5329 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.362e-05/0.3167, allocations: 5.219 kB / 0.5329 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.865e-05/0.3167, allocations: 3.984 kB / 0.5329 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.821e-06/0.3167, allocations: 1.031 kB / 0.5329 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01681/0.3335, allocations: 2.519 MB / 0.5354 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.366e-05/0.3335, allocations: 0 / 0.5354 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.151e-05/0.3336, allocations: 5.391 kB / 0.5354 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004382/0.334, allocations: 158.7 kB / 0.5355 GB, free: 10.6 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.334, allocations: 0 / 0.5355 GB, free: 10.6 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.334, allocations: 0 / 0.5355 GB, free: 10.6 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.3341, allocations: 4 kB / 0.5355 GB, free: 10.59 MB / 398.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.0004737/0.3345, allocations: 386.7 kB / 0.5359 GB, free: 10.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.3346, allocations: 10.5 kB / 0.5359 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.765e-05/0.3346, allocations: 34.73 kB / 0.5359 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.633e-05/0.3347, allocations: 2.062 kB / 0.5359 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.3348, allocations: 164.3 kB / 0.5361 GB, free: 9.941 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-06/0.3348, allocations: 384 / 0.5361 GB, free: 9.941 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.207e-06/0.3348, allocations: 1.5 kB / 0.5361 GB, free: 9.941 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.654e-05/0.3349, allocations: 35.98 kB / 0.5361 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.3349, allocations: 0 / 0.5361 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.3349, allocations: 1.25 kB / 0.5361 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.3349, allocations: 0 / 0.5361 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.788e-05/0.335, allocations: 1.031 kB / 0.5361 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000139/0.3351, allocations: 151.9 kB / 0.5363 GB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.913e-05/0.3352, allocations: 19.61 kB / 0.5363 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.51e-05/0.3352, allocations: 10.89 kB / 0.5363 GB, free: 9.668 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.66e-06/0.3352, allocations: 7.938 kB / 0.5363 GB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.113e-05/0.3353, allocations: 57.67 kB / 0.5364 GB, free: 9.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3353, allocations: 0 / 0.5364 GB, free: 9.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001745/0.3354, allocations: 71.38 kB / 0.5364 GB, free: 9.516 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.731e-05/0.3355, allocations: 78.42 kB / 0.5365 GB, free: 9.422 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.53e-05/0.3356, allocations: 89.86 kB / 0.5366 GB, free: 9.324 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.3356, allocations: 25.7 kB / 0.5366 GB, free: 9.293 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.515e-05/0.3356, allocations: 80.27 kB / 0.5367 GB, free: 9.211 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.3356, allocations: 5.25 kB / 0.5367 GB, free: 9.207 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.138e-05/0.3357, allocations: 20.28 kB / 0.5367 GB, free: 9.184 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.3358, allocations: 310.8 kB / 0.537 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.486e-05/0.3358, allocations: 9.203 kB / 0.537 GB, free: 8.863 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.352e-06/0.3359, allocations: 1.719 kB / 0.537 GB, free: 8.863 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.116e-05/0.3359, allocations: 58.55 kB / 0.5371 GB, free: 8.793 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3359, allocations: 1.375 kB / 0.5371 GB, free: 8.793 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.814e-05/0.336, allocations: 69.81 kB / 0.5371 GB, free: 8.719 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.889e-05/0.336, allocations: 35.25 kB / 0.5372 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.3361, allocations: 0 / 0.5372 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.3361, allocations: 1.375 kB / 0.5372 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.3361, allocations: 0 / 0.5372 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3361, allocations: 0 / 0.5372 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.826e-05/0.3361, allocations: 9.172 kB / 0.5372 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.3361, allocations: 0 / 0.5372 GB, free: 8.676 MB / 398.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.053e-05/0.3362, allocations: 137.9 kB / 0.5373 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.018e-05/0.3362, allocations: 9.312 kB / 0.5373 GB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.825e-06/0.3363, allocations: 3.125 kB / 0.5373 GB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.3363, allocations: 5.328 kB / 0.5373 GB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3363, allocations: 3.938 kB / 0.5373 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.3363, allocations: 0 / 0.5373 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001084/0.3364, allocations: 148.2 kB / 0.5375 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.3364, allocations: 0 / 0.5375 GB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.447e-06/0.3364, allocations: 3.938 kB / 0.5375 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.3364, allocations: 0 / 0.5375 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.552e-06/0.3364, allocations: 1.438 kB / 0.5375 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.3364, allocations: 0 / 0.5375 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3364, allocations: 9.281 kB / 0.5375 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001028/0.3365, allocations: 89.36 kB / 0.5376 GB, free: 8.207 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.339e-05/0.3366, allocations: 81.05 kB / 0.5377 GB, free: 8.109 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.3366, allocations: 5.281 kB / 0.5377 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.707e-06/0.3366, allocations: 1.344 kB / 0.5377 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.539e-05/0.3367, allocations: 7.922 kB / 0.5377 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.3367, allocations: 1.344 kB / 0.5377 GB, free: 8.098 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.467e-05/0.3367, allocations: 79.31 kB / 0.5377 GB, free: 8.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3367, allocations: 0 / 0.5377 GB, free: 8.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002771/0.337, allocations: 65.59 kB / 0.5378 GB, free: 8.008 MB / 398.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.001354/0.3383, allocations: 0.9235 MB / 0.5387 GB, free: 7.246 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000101/0.3385, allocations: 61.02 kB / 0.5388 GB, free: 7.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.3385, allocations: 4 kB / 0.5388 GB, free: 7.176 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.537e-05/0.3385, allocations: 62.75 kB / 0.5388 GB, free: 7.105 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001233/0.3387, allocations: 5.125 kB / 0.5388 GB, free: 7.105 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003557/0.339, allocations: 140.3 kB / 0.539 GB, free: 6.953 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.3393, allocations: 0.6749 MB / 0.5396 GB, free: 6.254 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.632e-06/0.3393, allocations: 0 / 0.5396 GB, free: 6.254 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.789e-05/0.3394, allocations: 10.59 kB / 0.5396 GB, free: 6.246 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3394, allocations: 0 / 0.5396 GB, free: 6.246 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0242/0.3636, allocations: 3.116 MB / 0.5427 GB, free: 4.551 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.887/8.25, allocations: 6.172 kB / 0.5427 GB, free: 4.547 MB / 398.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)