Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.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.TestStreams,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001329/0.001329, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001447/0.001447, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 247 MB, free: 10.4 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.2276/0.2276, allocations: 46.12 MB / 344.3 MB, free: 11.44 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.003199/0.003199, allocations: 83.86 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3598/0.363, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001454/0.3645, allocations: 478.7 kB / 0.531 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000699/0.3652, allocations: 301.3 kB / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.675e-05/0.3653, allocations: 0 / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.125e-05/0.3653, allocations: 0 / 0.5313 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.3653, allocations: 0 / 0.5313 GB, free: 12.8 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:221:3-287:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Streams' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008023/0.3661, allocations: 104.1 kB / 0.5314 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.201e-05/0.3662, allocations: 1.219 kB / 0.5314 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.779e-05/0.3662, allocations: 1.25 kB / 0.5314 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.274e-05/0.3662, allocations: 1.312 kB / 0.5314 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.726e-05/0.3662, allocations: 4 kB / 0.5314 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.25e-06/0.3662, allocations: 0 / 0.5314 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001957/0.3664, allocations: 111 kB / 0.5315 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.658e-06/0.3665, allocations: 3.984 kB / 0.5315 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.682e-05/0.3665, allocations: 0 / 0.5315 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001677/0.3667, allocations: 87.09 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.3667, allocations: 0 / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3667, allocations: 0 / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.3667, allocations: 0 / 0.5316 GB, free: 12.61 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.0003712/0.3671, allocations: 361.3 kB / 0.532 GB, free: 12.22 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.3671, allocations: 13.06 kB / 0.532 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.032e-05/0.3671, allocations: 30.75 kB / 0.532 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.432e-05/0.3672, allocations: 1.938 kB / 0.532 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.3673, allocations: 164.3 kB / 0.5322 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.3673, allocations: 1.75 kB / 0.5322 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.456e-06/0.3673, allocations: 384 / 0.5322 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.496e-05/0.3674, allocations: 37.38 kB / 0.5322 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.3674, allocations: 3.938 kB / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-06/0.3674, allocations: 0 / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.3674, allocations: 1.781 kB / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.592e-05/0.3675, allocations: 4 kB / 0.5322 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001439/0.3676, allocations: 142.9 kB / 0.5324 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.089e-05/0.3677, allocations: 21.58 kB / 0.5324 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.586e-05/0.3677, allocations: 6.391 kB / 0.5324 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.617e-06/0.3677, allocations: 0 / 0.5324 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.261e-05/0.3678, allocations: 69.81 kB / 0.5324 GB, free: 11.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3678, allocations: 4 kB / 0.5324 GB, free: 11.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001652/0.3679, allocations: 62.59 kB / 0.5325 GB, free: 11.55 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.368, allocations: 78.64 kB / 0.5326 GB, free: 11.46 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.82e-05/0.3681, allocations: 97.75 kB / 0.5327 GB, free: 11.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.3681, allocations: 25.7 kB / 0.5327 GB, free: 11.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.353e-05/0.3681, allocations: 80.14 kB / 0.5328 GB, free: 11.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.946e-05/0.3681, allocations: 5.312 kB / 0.5328 GB, free: 11.24 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.125e-05/0.3682, allocations: 19.27 kB / 0.5328 GB, free: 11.21 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.3683, allocations: 315.9 kB / 0.5331 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.498e-06/0.3683, allocations: 1.25 kB / 0.5331 GB, free: 10.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.67e-06/0.3683, allocations: 5.312 kB / 0.5331 GB, free: 10.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.927e-05/0.3684, allocations: 59.02 kB / 0.5332 GB, free: 10.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3684, allocations: 0 / 0.5332 GB, free: 10.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.512e-05/0.3685, allocations: 66.73 kB / 0.5332 GB, free: 10.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/0.3685, allocations: 31.05 kB / 0.5333 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3686, allocations: 3.938 kB / 0.5333 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.3686, allocations: 9.359 kB / 0.5333 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.3686, allocations: 3.938 kB / 0.5333 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.3686, allocations: 0 / 0.5333 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.46e-05/0.3686, allocations: 1.188 kB / 0.5333 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.3686, allocations: 5.516 kB / 0.5333 GB, free: 10.7 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.716e-05/0.3687, allocations: 137.5 kB / 0.5334 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.177e-05/0.3687, allocations: 5.141 kB / 0.5334 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.046e-06/0.3688, allocations: 7.062 kB / 0.5334 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.3688, allocations: 0 / 0.5334 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3688, allocations: 5.188 kB / 0.5334 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-06/0.3688, allocations: 0 / 0.5334 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.3689, allocations: 150.9 kB / 0.5336 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3689, allocations: 1.25 kB / 0.5336 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.3689, allocations: 0 / 0.5336 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.3689, allocations: 0 / 0.5336 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.3689, allocations: 13.62 kB / 0.5336 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.3689, allocations: 0 / 0.5336 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.3689, allocations: 0 / 0.5336 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001042/0.3691, allocations: 90.69 kB / 0.5337 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.196e-05/0.3691, allocations: 88.97 kB / 0.5338 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.3691, allocations: 5.438 kB / 0.5338 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.907e-06/0.3692, allocations: 0 / 0.5338 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.362e-05/0.3692, allocations: 1.625 kB / 0.5338 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.3692, allocations: 0 / 0.5338 GB, free: 10.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.49e-05/0.3692, allocations: 76.84 kB / 0.5338 GB, free: 10.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3692, allocations: 0 / 0.5338 GB, free: 10.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002426/0.3695, allocations: 31.38 kB / 0.5339 GB, free: 10.04 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.0009757/0.3705, allocations: 0.8018 MB / 0.5347 GB, free: 9.328 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.542e-05/0.3706, allocations: 63.78 kB / 0.5347 GB, free: 9.258 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3706, allocations: 0 / 0.5347 GB, free: 9.258 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.031e-05/0.3706, allocations: 58.39 kB / 0.5348 GB, free: 9.191 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001291/0.3708, allocations: 6.594 kB / 0.5348 GB, free: 9.188 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002899/0.371, allocations: 130 kB / 0.5349 GB, free: 9.035 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.3714, allocations: 0.6703 MB / 0.5356 GB, free: 8.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.769e-06/0.3714, allocations: 0 / 0.5356 GB, free: 8.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.292e-05/0.3714, allocations: 8.969 kB / 0.5356 GB, free: 8.332 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.3714, allocations: 0 / 0.5356 GB, free: 8.332 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02245/0.3939, allocations: 1.82 MB / 0.5373 GB, free: 7.281 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.183/8.577, allocations: 5.891 kB / 0.5373 GB, free: 7.281 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe 2>&1)