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.001826/0.001826, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002158/0.002158, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 247 MB, free: 10.41 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.2192/0.2192, allocations: 46.11 MB / 344.4 MB, free: 11.46 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.002381/0.002381, allocations: 79.86 kB / 480.9 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2927, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001413/0.2941, allocations: 485.5 kB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006741/0.2948, allocations: 304.7 kB / 0.5313 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.539e-05/0.2948, allocations: 0 / 0.5313 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.09e-05/0.2948, allocations: 0 / 0.5313 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.38e-06/0.2949, allocations: 1.188 kB / 0.5313 GB, free: 12.81 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.0007701/0.2956, allocations: 100.5 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.313e-05/0.2957, allocations: 1.406 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.968e-05/0.2957, allocations: 1.656 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.176e-05/0.2957, allocations: 0 / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.176e-05/0.2958, allocations: 5.328 kB / 0.5314 GB, free: 12.74 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.989e-06/0.2958, allocations: 0 / 0.5314 GB, free: 12.74 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001834/0.296, allocations: 113.4 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.302e-06/0.296, allocations: 3.938 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.455e-05/0.296, allocations: 1.844 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.2962, allocations: 87.34 kB / 0.5316 GB, free: 12.63 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2962, allocations: 0 / 0.5316 GB, free: 12.63 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2962, allocations: 0 / 0.5316 GB, free: 12.63 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.2962, allocations: 0 / 0.5316 GB, free: 12.63 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.0003467/0.2965, allocations: 359.8 kB / 0.532 GB, free: 12.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.2966, allocations: 10.09 kB / 0.532 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.242e-05/0.2966, allocations: 30.75 kB / 0.532 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.071e-05/0.2967, allocations: 6.25 kB / 0.532 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.2968, allocations: 160.4 kB / 0.5322 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.368e-06/0.2968, allocations: 384 / 0.5322 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.901e-06/0.2968, allocations: 1.938 kB / 0.5322 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.224e-05/0.2969, allocations: 32.31 kB / 0.5322 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.2969, allocations: 7.875 kB / 0.5322 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.872e-06/0.2969, allocations: 2.844 kB / 0.5322 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.2969, allocations: 3.984 kB / 0.5322 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.813e-05/0.2969, allocations: 7.938 kB / 0.5322 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001434/0.2971, allocations: 147.6 kB / 0.5324 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.749e-05/0.2971, allocations: 16.55 kB / 0.5324 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.3e-05/0.2972, allocations: 4.859 kB / 0.5324 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.831e-06/0.2972, allocations: 2.156 kB / 0.5324 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.435e-05/0.2972, allocations: 68.19 kB / 0.5325 GB, free: 11.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.2972, allocations: 0 / 0.5325 GB, free: 11.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001521/0.2974, allocations: 72.53 kB / 0.5325 GB, free: 11.56 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.2974, allocations: 77.11 kB / 0.5326 GB, free: 11.47 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.843e-05/0.2975, allocations: 93.81 kB / 0.5327 GB, free: 11.37 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.2975, allocations: 25.7 kB / 0.5327 GB, free: 11.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.303e-05/0.2976, allocations: 80.14 kB / 0.5328 GB, free: 11.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.2976, allocations: 11.17 kB / 0.5328 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.768e-05/0.2976, allocations: 13.72 kB / 0.5328 GB, free: 11.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.2978, allocations: 313.7 kB / 0.5331 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.228e-06/0.2978, allocations: 4.125 kB / 0.5331 GB, free: 10.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.07e-06/0.2978, allocations: 0 / 0.5331 GB, free: 10.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.064e-05/0.2978, allocations: 59.48 kB / 0.5332 GB, free: 10.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.2978, allocations: 0 / 0.5332 GB, free: 10.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.224e-05/0.2979, allocations: 70.55 kB / 0.5332 GB, free: 10.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.298, allocations: 32.17 kB / 0.5333 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.298, allocations: 3.938 kB / 0.5333 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.448e-06/0.298, allocations: 0 / 0.5333 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.298, allocations: 0 / 0.5333 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.298, allocations: 5.719 kB / 0.5333 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.363e-05/0.298, allocations: 0 / 0.5333 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.156e-06/0.298, allocations: 5.656 kB / 0.5333 GB, free: 10.72 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.051e-05/0.2981, allocations: 141.3 kB / 0.5334 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.2981, allocations: 6.078 kB / 0.5334 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.727e-06/0.2982, allocations: 7.062 kB / 0.5334 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.2982, allocations: 0 / 0.5334 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.2982, allocations: 0 / 0.5334 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-06/0.2982, allocations: 0 / 0.5334 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001013/0.2983, allocations: 149 kB / 0.5336 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.2983, allocations: 0 / 0.5336 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-07/0.2983, allocations: 0 / 0.5336 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.2983, allocations: 3.984 kB / 0.5336 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.2983, allocations: 3.938 kB / 0.5336 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2983, allocations: 2.656 kB / 0.5336 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2983, allocations: 3.938 kB / 0.5336 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.437e-05/0.2984, allocations: 88.03 kB / 0.5337 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.513e-05/0.2985, allocations: 95.72 kB / 0.5338 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/0.2985, allocations: 3.938 kB / 0.5338 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.185e-06/0.2985, allocations: 0 / 0.5338 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.187e-06/0.2985, allocations: 3.938 kB / 0.5338 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-06/0.2985, allocations: 0 / 0.5338 GB, free: 10.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.128e-05/0.2986, allocations: 75.28 kB / 0.5338 GB, free: 10.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2986, allocations: 0 / 0.5338 GB, free: 10.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002279/0.2988, allocations: 32.55 kB / 0.5339 GB, free: 10.06 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.0009062/0.2997, allocations: 0.7984 MB / 0.5347 GB, free: 9.344 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.92e-05/0.2998, allocations: 56.84 kB / 0.5347 GB, free: 9.281 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2998, allocations: 0 / 0.5347 GB, free: 9.281 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.473e-05/0.2999, allocations: 62.98 kB / 0.5348 GB, free: 9.211 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001182/0.3, allocations: 1.25 kB / 0.5348 GB, free: 9.211 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002806/0.3003, allocations: 126.7 kB / 0.5349 GB, free: 9.062 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.3006, allocations: 0.6705 MB / 0.5355 GB, free: 8.367 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.443e-05/0.3006, allocations: 4 kB / 0.5355 GB, free: 8.363 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.457e-05/0.3006, allocations: 8.812 kB / 0.5356 GB, free: 8.355 MB / 398.1 MB Notification: Performance of SimCode: time 2.324e-06/0.3006, allocations: 0 / 0.5356 GB, free: 8.355 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02221/0.3228, allocations: 1.826 MB / 0.5373 GB, free: 7.305 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.066/8.388, allocations: 6.203 kB / 0.5373 GB, free: 7.301 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams_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_TestStreams.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe 2>&1)