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.001361/0.001361, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001468/0.001469, allocations: 201.2 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.453/1.453, allocations: 227.4 MB / 247 MB, free: 10.48 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.2327/0.2327, allocations: 46.12 MB / 344.3 MB, free: 11.48 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.002309/0.002309, allocations: 79.86 kB / 480.9 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3197, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001552/0.3213, allocations: 485.9 kB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002549/0.3239, allocations: 1.296 MB / 0.5323 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.552e-05/0.3239, allocations: 0 / 0.5323 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.632e-05/0.3239, allocations: 0 / 0.5323 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.582e-06/0.324, allocations: 7.938 kB / 0.5323 GB, free: 12.04 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.001638/0.3256, allocations: 0.5677 MB / 0.5329 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.113e-05/0.3257, allocations: 9.453 kB / 0.5329 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.391e-05/0.3257, allocations: 1.062 kB / 0.5329 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.53e-05/0.3257, allocations: 1.094 kB / 0.5329 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.804e-05/0.3258, allocations: 1.031 kB / 0.5329 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.715e-06/0.3258, allocations: 0 / 0.5329 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0171/0.3429, allocations: 2.536 MB / 0.5354 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.145e-05/0.3429, allocations: 0 / 0.5354 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.89e-05/0.3429, allocations: 4.875 kB / 0.5354 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004449/0.3434, allocations: 163.5 kB / 0.5355 GB, free: 10.62 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3434, allocations: 0 / 0.5355 GB, free: 10.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3434, allocations: 0 / 0.5355 GB, free: 10.62 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.3434, allocations: 1.156 kB / 0.5355 GB, free: 10.62 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.0004488/0.3439, allocations: 382.2 kB / 0.5359 GB, free: 10.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.3439, allocations: 10.31 kB / 0.5359 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.586e-05/0.344, allocations: 34.75 kB / 0.5359 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.161e-05/0.344, allocations: 0.9375 kB / 0.5359 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001217/0.3441, allocations: 173.7 kB / 0.5361 GB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.34e-05/0.3442, allocations: 384 / 0.5361 GB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.232e-05/0.3442, allocations: 1.656 kB / 0.5361 GB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.504e-05/0.3443, allocations: 32.58 kB / 0.5361 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.3443, allocations: 0 / 0.5361 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-06/0.3443, allocations: 0 / 0.5361 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.3443, allocations: 0 / 0.5361 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.252e-05/0.3444, allocations: 6.375 kB / 0.5361 GB, free: 9.926 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001582/0.3445, allocations: 149.7 kB / 0.5363 GB, free: 9.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.73e-05/0.3446, allocations: 25.05 kB / 0.5363 GB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.749e-05/0.3446, allocations: 6.141 kB / 0.5363 GB, free: 9.691 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.3446, allocations: 3.938 kB / 0.5363 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.666e-05/0.3447, allocations: 57.61 kB / 0.5364 GB, free: 9.617 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.3447, allocations: 0 / 0.5364 GB, free: 9.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001812/0.3449, allocations: 71.39 kB / 0.5364 GB, free: 9.543 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.585e-05/0.3449, allocations: 78.48 kB / 0.5365 GB, free: 9.449 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.153e-05/0.345, allocations: 89.86 kB / 0.5366 GB, free: 9.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.345, allocations: 29.64 kB / 0.5366 GB, free: 9.316 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.586e-05/0.3451, allocations: 81.42 kB / 0.5367 GB, free: 9.234 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.3451, allocations: 0 / 0.5367 GB, free: 9.234 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.012e-05/0.3451, allocations: 12.25 kB / 0.5367 GB, free: 9.219 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.3453, allocations: 311 kB / 0.537 GB, free: 8.906 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.029e-05/0.3453, allocations: 5.5 kB / 0.537 GB, free: 8.902 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.198e-06/0.3453, allocations: 5.531 kB / 0.537 GB, free: 8.898 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.691e-05/0.3454, allocations: 63.38 kB / 0.5371 GB, free: 8.824 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3454, allocations: 0 / 0.5371 GB, free: 8.824 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.749e-05/0.3454, allocations: 61.69 kB / 0.5371 GB, free: 8.758 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.041e-05/0.3455, allocations: 31.45 kB / 0.5372 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.3455, allocations: 1.094 kB / 0.5372 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.3455, allocations: 0 / 0.5372 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.514e-06/0.3455, allocations: 13.42 kB / 0.5372 GB, free: 8.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.3455, allocations: 0 / 0.5372 GB, free: 8.715 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.835e-05/0.3456, allocations: 3.953 kB / 0.5372 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.3456, allocations: 5.281 kB / 0.5372 GB, free: 8.707 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 0.000122/0.3457, allocations: 142.3 kB / 0.5373 GB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.123e-05/0.3457, allocations: 3.938 kB / 0.5373 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.588e-06/0.3457, allocations: 4.406 kB / 0.5373 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3457, allocations: 0 / 0.5373 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3458, allocations: 0 / 0.5373 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.3458, allocations: 5.312 kB / 0.5373 GB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.3459, allocations: 146.8 kB / 0.5375 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3459, allocations: 0 / 0.5375 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.785e-06/0.3459, allocations: 3.938 kB / 0.5375 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3459, allocations: 1.5 kB / 0.5375 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.3459, allocations: 0 / 0.5375 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3459, allocations: 5.406 kB / 0.5375 GB, free: 8.348 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.3459, allocations: 0 / 0.5375 GB, free: 8.348 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001132/0.3461, allocations: 93.11 kB / 0.5376 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.32e-05/0.3461, allocations: 86.39 kB / 0.5377 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.3461, allocations: 5.344 kB / 0.5377 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.936e-06/0.3461, allocations: 0 / 0.5377 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.667e-05/0.3462, allocations: 1.344 kB / 0.5377 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-06/0.3462, allocations: 0 / 0.5377 GB, free: 8.137 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.3e-05/0.3462, allocations: 76.47 kB / 0.5377 GB, free: 8.062 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3462, allocations: 0 / 0.5377 GB, free: 8.062 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003291/0.3466, allocations: 68.8 kB / 0.5378 GB, free: 8.047 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.001484/0.348, allocations: 0.9187 MB / 0.5387 GB, free: 7.289 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001074/0.3482, allocations: 73.02 kB / 0.5388 GB, free: 7.211 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.3482, allocations: 7.938 kB / 0.5388 GB, free: 7.203 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.718e-05/0.3482, allocations: 54.91 kB / 0.5388 GB, free: 7.141 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001283/0.3484, allocations: 6.188 kB / 0.5388 GB, free: 7.137 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00034/0.3487, allocations: 137 kB / 0.539 GB, free: 6.988 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/0.349, allocations: 0.6702 MB / 0.5396 GB, free: 6.293 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.159e-06/0.349, allocations: 0 / 0.5396 GB, free: 6.293 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.152e-05/0.349, allocations: 13.8 kB / 0.5396 GB, free: 6.281 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.349, allocations: 5.125 kB / 0.5396 GB, free: 6.277 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02591/0.375, allocations: 3.109 MB / 0.5427 GB, free: 4.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.134/8.509, allocations: 1.984 kB / 0.5427 GB, free: 4.59 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.pipe 2>&1)