Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.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.001379/0.001379, 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.001441/0.001441, allocations: 217.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.359/1.359, allocations: 230.2 MB / 256.2 MB, free: 8.746 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.2095/0.2095, allocations: 46.9 MB / 359.3 MB, free: 4.961 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.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_MuxDemux",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.002129/0.002129, allocations: 87.84 kB / 0.494 GB, free: 9.094 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2784, allocations: 65.98 MB / 0.5584 GB, free: 5.188 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002599/0.281, allocations: 1.57 MB / 0.5599 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002045/0.2812, allocations: 63.75 kB / 0.56 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.336e-05/0.2812, allocations: 0 / 0.56 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.2814, allocations: 23.8 kB / 0.56 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.001e-05/0.2814, allocations: 3.938 kB / 0.56 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000123/0.2815, allocations: 23.97 kB / 0.5601 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001067/0.2816, allocations: 71.81 kB / 0.5601 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002288/0.2819, allocations: 97.2 kB / 0.5602 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.318e-05/0.2819, allocations: 27.92 kB / 0.5602 GB, free: 3.293 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.049e-05/0.282, allocations: 43.84 kB / 0.5603 GB, free: 3.25 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.107e-05/0.282, allocations: 8 kB / 0.5603 GB, free: 3.242 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.665e-05/0.282, allocations: 12 kB / 0.5603 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.839e-05/0.2821, allocations: 67.81 kB / 0.5604 GB, free: 3.164 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.336e-05/0.2822, allocations: 67.59 kB / 0.5604 GB, free: 3.098 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001772/0.2823, allocations: 155.3 kB / 0.5606 GB, free: 2.945 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.2823, allocations: 0 / 0.5606 GB, free: 2.945 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2823, allocations: 0 / 0.5606 GB, free: 2.945 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.461e-06/0.2824, allocations: 0 / 0.5606 GB, free: 2.945 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005013/0.2829, allocations: 447.1 kB / 0.561 GB, free: 2.461 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.2829, allocations: 8.031 kB / 0.561 GB, free: 2.453 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.005e-05/0.283, allocations: 67.12 kB / 0.5611 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.051e-05/0.283, allocations: 20.84 kB / 0.5611 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002188/0.2832, allocations: 224 kB / 0.5613 GB, free: 2.098 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.2833, allocations: 12.81 kB / 0.5613 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.754e-05/0.2833, allocations: 24.38 kB / 0.5613 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003384/0.2836, allocations: 207.6 kB / 0.5615 GB, free: 1.855 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.2836, allocations: 3.938 kB / 0.5615 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.2836, allocations: 8 kB / 0.5616 GB, free: 1.844 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.2837, allocations: 4 kB / 0.5616 GB, free: 1.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002321/0.2839, allocations: 133.7 kB / 0.5617 GB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000624/0.2845, allocations: 0.5141 MB / 0.5622 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.275e-05/0.2846, allocations: 42.5 kB / 0.5622 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.427e-05/0.2847, allocations: 32.97 kB / 0.5623 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.2847, allocations: 0 / 0.5623 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.2847, allocations: 34.5 kB / 0.5623 GB, free: 1.016 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 8.82e-07/0.2847, allocations: 0 / 0.5623 GB, free: 1.016 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002333/0.2849, allocations: 77.62 kB / 0.5624 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.285, allocations: 55.34 kB / 0.5624 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.367e-05/0.2851, allocations: 109.8 kB / 0.5625 GB, free: 0.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.2851, allocations: 29.7 kB / 0.5626 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.048e-05/0.2852, allocations: 144.2 kB / 0.5627 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.988e-05/0.2852, allocations: 15.89 kB / 0.5627 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.023e-05/0.2852, allocations: 13.72 kB / 0.5627 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.2853, allocations: 326.8 kB / 0.563 GB, free: 212 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.759e-05/0.2854, allocations: 4 kB / 0.563 GB, free: 208 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.814e-05/0.2854, allocations: 15.98 kB / 0.563 GB, free: 192 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.812e-05/0.2855, allocations: 36.84 kB / 0.5631 GB, free: 152 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.2855, allocations: 0 / 0.5631 GB, free: 152 kB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001234/0.2856, allocations: 66.02 kB / 0.5631 GB, free: 80 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.2856, allocations: 4 kB / 0.5632 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.2856, allocations: 0 / 0.5632 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.2856, allocations: 0 / 0.5632 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.475e-05/0.2857, allocations: 19.98 kB / 0.5632 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.2857, allocations: 4 kB / 0.5632 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.585e-05/0.2858, allocations: 3.938 kB / 0.5632 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.2858, allocations: 4 kB / 0.5632 GB, free: 44 kB / 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.0001168/0.2859, allocations: 141.8 kB / 0.5633 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.511e-05/0.2859, allocations: 3.953 kB / 0.5633 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.896e-05/0.2859, allocations: 7.969 kB / 0.5633 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.2859, allocations: 0 / 0.5633 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.2859, allocations: 0 / 0.5633 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.2859, allocations: 0 / 0.5633 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003775/0.2863, allocations: 374.4 kB / 0.5637 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2863, allocations: 4 kB / 0.5637 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.323e-05/0.2863, allocations: 11.98 kB / 0.5637 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.572e-06/0.2863, allocations: 0 / 0.5637 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.2864, allocations: 4 kB / 0.5637 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.2864, allocations: 0 / 0.5637 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.2864, allocations: 7.875 kB / 0.5637 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001768/0.2865, allocations: 163.5 kB / 0.5639 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.726e-05/0.2866, allocations: 88.98 kB / 0.564 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.069e-05/0.2866, allocations: 4 kB / 0.564 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.333e-05/0.2866, allocations: 4 kB / 0.564 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.504e-05/0.2867, allocations: 7.922 kB / 0.564 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.2867, allocations: 0 / 0.564 GB, free: 15.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.712e-05/0.2867, allocations: 91.58 kB / 0.5641 GB, free: 15.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.2867, allocations: 0 / 0.5641 GB, free: 15.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002197/0.2869, allocations: 31.78 kB / 0.5641 GB, free: 15.02 MB / 414.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.0005025/0.2874, allocations: 0.7126 MB / 0.5648 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001325/0.2876, allocations: 32.05 kB / 0.5648 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2876, allocations: 0 / 0.5648 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.094e-05/0.2876, allocations: 15.98 kB / 0.5648 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002876/0.2879, allocations: 15.94 kB / 0.5648 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.2893, allocations: 1.453 MB / 0.5663 GB, free: 12.69 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/0.2897, allocations: 0.7275 MB / 0.567 GB, free: 11.93 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.314e-05/0.2897, allocations: 11.77 kB / 0.567 GB, free: 11.92 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.581e-05/0.2898, allocations: 47.42 kB / 0.567 GB, free: 11.88 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2898, allocations: 0 / 0.567 GB, free: 11.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02351/0.3133, allocations: 1.945 MB / 0.5689 GB, free: 10 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.045/7.358, allocations: 8.453 kB / 0.5689 GB, free: 9.996 MB / 414.1 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00039984 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.978785557002993]