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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001404/0.001404, allocations: 105 kB / 19.74 MB, free: 2.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001599/0.001599, allocations: 218.3 kB / 22.92 MB, free: 5.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 230.2 MB / 256.1 MB, free: 8.758 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.1991/0.1991, allocations: 46.9 MB / 359.3 MB, free: 4.98 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.002105/0.002105, allocations: 83.86 kB / 0.4939 GB, free: 9.129 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2723, allocations: 65.99 MB / 0.5584 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001408/0.2737, allocations: 476.8 kB / 0.5588 GB, free: 4.621 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007324/0.2745, allocations: 321.4 kB / 0.5592 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.538e-05/0.2745, allocations: 0 / 0.5592 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.004e-05/0.2745, allocations: 3.938 kB / 0.5592 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.06e-06/0.2745, allocations: 0 / 0.5592 GB, free: 4.305 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.0007135/0.2752, allocations: 94.38 kB / 0.5592 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.228e-05/0.2753, allocations: 0 / 0.5592 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.752e-05/0.2753, allocations: 3.984 kB / 0.5592 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.193e-05/0.2753, allocations: 4 kB / 0.5593 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.709e-05/0.2753, allocations: 0 / 0.5593 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.568e-06/0.2753, allocations: 0 / 0.5593 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001948/0.2755, allocations: 111.9 kB / 0.5594 GB, free: 4.098 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.77e-06/0.2755, allocations: 4 kB / 0.5594 GB, free: 4.094 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.797e-05/0.2755, allocations: 4 kB / 0.5594 GB, free: 4.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001515/0.2757, allocations: 85.58 kB / 0.5594 GB, free: 4.012 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.2757, allocations: 4 kB / 0.5595 GB, free: 4.008 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2757, allocations: 0 / 0.5595 GB, free: 4.008 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.2757, allocations: 0 / 0.5595 GB, free: 4.008 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.0003582/0.2761, allocations: 353.1 kB / 0.5598 GB, free: 3.605 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.2761, allocations: 12.03 kB / 0.5598 GB, free: 3.594 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.956e-05/0.2761, allocations: 34.69 kB / 0.5598 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.268e-05/0.2761, allocations: 4.938 kB / 0.5598 GB, free: 3.547 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.2763, allocations: 168.4 kB / 0.56 GB, free: 3.344 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.2763, allocations: 384 / 0.56 GB, free: 3.344 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.554e-06/0.2763, allocations: 4.375 kB / 0.56 GB, free: 3.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.174e-05/0.2763, allocations: 26.27 kB / 0.56 GB, free: 3.309 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.2764, allocations: 3.938 kB / 0.56 GB, free: 3.305 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.582e-06/0.2764, allocations: 0 / 0.56 GB, free: 3.305 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.2764, allocations: 4 kB / 0.56 GB, free: 3.301 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.444e-05/0.2764, allocations: 0 / 0.56 GB, free: 3.301 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001399/0.2765, allocations: 153.6 kB / 0.5602 GB, free: 3.102 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.511e-05/0.2766, allocations: 26.55 kB / 0.5602 GB, free: 3.066 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.304e-05/0.2766, allocations: 4.859 kB / 0.5602 GB, free: 3.059 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.264e-06/0.2766, allocations: 0 / 0.5602 GB, free: 3.059 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.697e-05/0.2766, allocations: 56.27 kB / 0.5603 GB, free: 2.988 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.2766, allocations: 0 / 0.5603 GB, free: 2.988 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001627/0.2768, allocations: 67.39 kB / 0.5603 GB, free: 2.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.553e-05/0.2769, allocations: 85.17 kB / 0.5604 GB, free: 2.809 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.453e-05/0.2769, allocations: 101.8 kB / 0.5605 GB, free: 2.699 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.2769, allocations: 25.7 kB / 0.5605 GB, free: 2.668 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.659e-05/0.277, allocations: 80.14 kB / 0.5606 GB, free: 2.586 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.277, allocations: 7.875 kB / 0.5606 GB, free: 2.578 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.472e-05/0.277, allocations: 9.719 kB / 0.5606 GB, free: 2.562 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.2771, allocations: 314.8 kB / 0.5609 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.807e-06/0.2771, allocations: 0 / 0.5609 GB, free: 2.246 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.633e-06/0.2772, allocations: 7.984 kB / 0.5609 GB, free: 2.238 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.422e-05/0.2772, allocations: 64.27 kB / 0.561 GB, free: 2.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.2772, allocations: 0 / 0.561 GB, free: 2.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.714e-05/0.2773, allocations: 59.41 kB / 0.5611 GB, free: 2.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.12e-05/0.2773, allocations: 33.64 kB / 0.5611 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.2773, allocations: 3.938 kB / 0.5611 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.2773, allocations: 3.984 kB / 0.5611 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.157e-06/0.2773, allocations: 7.984 kB / 0.5611 GB, free: 2.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.2773, allocations: 0 / 0.5611 GB, free: 2.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.289e-05/0.2773, allocations: 4.094 kB / 0.5611 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.149e-06/0.2773, allocations: 0 / 0.5611 GB, free: 2.031 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.047e-05/0.2774, allocations: 135.5 kB / 0.5612 GB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.485e-06/0.2774, allocations: 0 / 0.5612 GB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.306e-06/0.2775, allocations: 7.062 kB / 0.5612 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.82e-07/0.2775, allocations: 0 / 0.5612 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.2775, allocations: 0 / 0.5612 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.744e-06/0.2775, allocations: 0 / 0.5612 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001089/0.2776, allocations: 157.7 kB / 0.5614 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.2776, allocations: 4 kB / 0.5614 GB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.2776, allocations: 0 / 0.5614 GB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.2776, allocations: 0 / 0.5614 GB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.2776, allocations: 11.88 kB / 0.5614 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.2776, allocations: 0 / 0.5614 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2776, allocations: 0 / 0.5614 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001032/0.2777, allocations: 94.77 kB / 0.5615 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.927e-05/0.2777, allocations: 77.11 kB / 0.5616 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.2777, allocations: 11.97 kB / 0.5616 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.494e-06/0.2777, allocations: 0 / 0.5616 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.162e-05/0.2778, allocations: 0 / 0.5616 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.2778, allocations: 0 / 0.5616 GB, free: 1.438 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.101e-05/0.2778, allocations: 75.28 kB / 0.5617 GB, free: 1.363 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2778, allocations: 0 / 0.5617 GB, free: 1.363 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.278, allocations: 35.92 kB / 0.5617 GB, free: 1.328 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.000876/0.2789, allocations: 0.7984 MB / 0.5625 GB, free: 0.543 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.745e-05/0.279, allocations: 67.34 kB / 0.5625 GB, free: 476 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.279, allocations: 0 / 0.5625 GB, free: 476 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.521e-05/0.279, allocations: 55.41 kB / 0.5626 GB, free: 408 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001063/0.2791, allocations: 0 / 0.5626 GB, free: 408 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002751/0.2794, allocations: 130.5 kB / 0.5627 GB, free: 236 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002938/0.2797, allocations: 0.6729 MB / 0.5634 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.332e-06/0.2797, allocations: 7.922 kB / 0.5634 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.109e-05/0.2797, allocations: 11.56 kB / 0.5634 GB, free: 15.51 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2797, allocations: 0 / 0.5634 GB, free: 15.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02138/0.3011, allocations: 1.812 MB / 0.5652 GB, free: 13.76 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.947/7.248, allocations: 10.23 kB / 0.5652 GB, free: 13.75 MB / 414.1 MB " [Timeout remaining time 653] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.721234118987923]