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.00158/0.00158, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001829/0.001829, allocations: 213.6 kB / 24.54 MB, free: 4.02 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.452/1.452, allocations: 230.5 MB / 258.2 MB, free: 7.977 MB / 206.1 MB " [Timeout remaining time 178] 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.2291/0.2291, allocations: 46.93 MB / 361.6 MB, free: 4.152 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.002433/0.002433, allocations: 79.88 kB / 0.497 GB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2947, allocations: 66.08 MB / 0.5615 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001574/0.2963, allocations: 489 kB / 0.5619 GB, free: 3.789 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007706/0.297, allocations: 309.5 kB / 0.5622 GB, free: 3.488 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.81e-05/0.2971, allocations: 4 kB / 0.5622 GB, free: 3.484 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.246e-05/0.2971, allocations: 0 / 0.5622 GB, free: 3.484 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.812e-06/0.2971, allocations: 0 / 0.5622 GB, free: 3.484 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.000912/0.298, allocations: 97.12 kB / 0.5623 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.942e-05/0.298, allocations: 8 kB / 0.5623 GB, free: 3.387 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.533e-05/0.2981, allocations: 0 / 0.5623 GB, free: 3.387 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.745e-05/0.2981, allocations: 3.984 kB / 0.5624 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.959e-05/0.2981, allocations: 0 / 0.5624 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.801e-06/0.2981, allocations: 3.938 kB / 0.5624 GB, free: 3.379 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002279/0.2984, allocations: 115.9 kB / 0.5625 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.114e-06/0.2984, allocations: 0 / 0.5625 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.286e-05/0.2984, allocations: 4 kB / 0.5625 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001847/0.2986, allocations: 93.7 kB / 0.5626 GB, free: 3.176 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2986, allocations: 0 / 0.5626 GB, free: 3.176 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2986, allocations: 0 / 0.5626 GB, free: 3.176 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.2986, allocations: 7.938 kB / 0.5626 GB, free: 3.168 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.0003608/0.2989, allocations: 280 kB / 0.5628 GB, free: 2.855 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.299, allocations: 12.03 kB / 0.5628 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.133e-05/0.299, allocations: 30.75 kB / 0.5629 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.48e-05/0.299, allocations: 0.9375 kB / 0.5629 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.04e-05/0.2991, allocations: 106.5 kB / 0.563 GB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.2991, allocations: 4.375 kB / 0.563 GB, free: 2.672 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.652e-06/0.2992, allocations: 384 / 0.563 GB, free: 2.672 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.197e-05/0.2992, allocations: 34.25 kB / 0.563 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.2993, allocations: 7.938 kB / 0.563 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.2993, allocations: 0 / 0.563 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.2993, allocations: 0 / 0.563 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.821e-05/0.2993, allocations: 0 / 0.563 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001536/0.2994, allocations: 120.7 kB / 0.5631 GB, free: 2.465 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.423e-05/0.2995, allocations: 22.52 kB / 0.5632 GB, free: 2.434 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.451e-05/0.2995, allocations: 4.859 kB / 0.5632 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-06/0.2995, allocations: 0 / 0.5632 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.539e-05/0.2996, allocations: 68.31 kB / 0.5632 GB, free: 2.344 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.2996, allocations: 0 / 0.5632 GB, free: 2.344 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001821/0.2997, allocations: 67.28 kB / 0.5633 GB, free: 2.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.883e-05/0.2998, allocations: 77.23 kB / 0.5634 GB, free: 2.172 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.925e-05/0.2999, allocations: 97.81 kB / 0.5635 GB, free: 2.066 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.2999, allocations: 25.7 kB / 0.5635 GB, free: 2.035 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.608e-05/0.2999, allocations: 80.14 kB / 0.5636 GB, free: 1.953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.084e-05/0.2999, allocations: 3.938 kB / 0.5636 GB, free: 1.949 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.371e-05/0.3, allocations: 21.7 kB / 0.5636 GB, free: 1.922 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.3001, allocations: 310.8 kB / 0.5639 GB, free: 1.609 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.028e-05/0.3001, allocations: 0 / 0.5639 GB, free: 1.609 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.815e-06/0.3001, allocations: 4 kB / 0.5639 GB, free: 1.605 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.735e-05/0.3002, allocations: 60.33 kB / 0.5639 GB, free: 1.531 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3002, allocations: 0 / 0.5639 GB, free: 1.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.665e-05/0.3003, allocations: 71.33 kB / 0.564 GB, free: 1.449 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.749e-05/0.3003, allocations: 33.7 kB / 0.564 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.3003, allocations: 3.938 kB / 0.564 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.3003, allocations: 0 / 0.564 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.3003, allocations: 3.938 kB / 0.5641 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.389e-06/0.3003, allocations: 0 / 0.5641 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.414e-05/0.3003, allocations: 0 / 0.5641 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.3003, allocations: 4.031 kB / 0.5641 GB, free: 1.398 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.561e-05/0.3004, allocations: 135.5 kB / 0.5642 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.678e-06/0.3004, allocations: 4 kB / 0.5642 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.611e-05/0.3005, allocations: 10.92 kB / 0.5642 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.3005, allocations: 0 / 0.5642 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3005, allocations: 4 kB / 0.5642 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.3005, allocations: 0 / 0.5642 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.795e-05/0.3006, allocations: 116.8 kB / 0.5643 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3006, allocations: 0 / 0.5643 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.3006, allocations: 4 kB / 0.5643 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.3006, allocations: 0 / 0.5643 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.3006, allocations: 7.938 kB / 0.5643 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.3006, allocations: 7.922 kB / 0.5643 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3006, allocations: 0 / 0.5643 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001026/0.3007, allocations: 90.78 kB / 0.5644 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.921e-06/0.3007, allocations: 3.984 kB / 0.5644 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.3007, allocations: 7.922 kB / 0.5644 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.817e-06/0.3007, allocations: 4.031 kB / 0.5644 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.067e-05/0.3007, allocations: 0 / 0.5644 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-06/0.3007, allocations: 4 kB / 0.5644 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.343e-05/0.3008, allocations: 75.28 kB / 0.5645 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3008, allocations: 0 / 0.5645 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000261/0.301, allocations: 31.94 kB / 0.5645 GB, free: 0.8164 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.0009795/0.302, allocations: 0.7871 MB / 0.5653 GB, free: 36 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001174/0.3021, allocations: 63.34 kB / 0.5654 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3021, allocations: 4.062 kB / 0.5654 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.891e-05/0.3022, allocations: 55.41 kB / 0.5654 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.3023, allocations: 7.984 kB / 0.5654 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003265/0.3026, allocations: 118.6 kB / 0.5655 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004107/0.303, allocations: 0.6729 MB / 0.5662 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.156e-06/0.303, allocations: 3.984 kB / 0.5662 GB, free: 15.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.63e-05/0.3031, allocations: 7.438 kB / 0.5662 GB, free: 15.02 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3031, allocations: 0 / 0.5662 GB, free: 15.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02522/0.3283, allocations: 1.846 MB / 0.568 GB, free: 13.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.839/8.168, allocations: 7.875 kB / 0.568 GB, free: 13.23 MB / 414.1 MB " [Timeout remaining time 652] (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: 10.898427451960742] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.237487832084298 8.26325009 7.960058273 Calling exit ...