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.001337/0.001337, allocations: 110.5 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.002541/0.002541, allocations: 213.2 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.527/1.527, allocations: 230.5 MB / 258.2 MB, free: 8.02 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.2322/0.2322, allocations: 46.92 MB / 361.6 MB, free: 4.223 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.002334/0.002334, allocations: 79.88 kB / 0.497 GB, free: 7.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3946/0.397, allocations: 66.08 MB / 0.5615 GB, free: 4.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002957/0.3999, allocations: 1.577 MB / 0.563 GB, free: 2.762 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002561/0.4002, allocations: 59.75 kB / 0.5631 GB, free: 2.703 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.323e-05/0.4002, allocations: 4 kB / 0.5631 GB, free: 2.699 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001749/0.4004, allocations: 23.78 kB / 0.5631 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.384e-05/0.4004, allocations: 3.938 kB / 0.5631 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000163/0.4006, allocations: 27.98 kB / 0.5632 GB, free: 2.645 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001442/0.4007, allocations: 67.81 kB / 0.5632 GB, free: 2.578 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002947/0.401, allocations: 93.56 kB / 0.5633 GB, free: 2.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.613e-05/0.4011, allocations: 31.92 kB / 0.5633 GB, free: 2.449 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.716e-05/0.4012, allocations: 47.83 kB / 0.5634 GB, free: 2.402 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.791e-05/0.4012, allocations: 12 kB / 0.5634 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.137e-05/0.4012, allocations: 8 kB / 0.5634 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.84e-05/0.4013, allocations: 63.83 kB / 0.5635 GB, free: 2.32 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.676e-05/0.4014, allocations: 63.61 kB / 0.5635 GB, free: 2.258 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002447/0.4017, allocations: 159.2 kB / 0.5637 GB, free: 2.102 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.4017, allocations: 0 / 0.5637 GB, free: 2.102 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4017, allocations: 0 / 0.5637 GB, free: 2.102 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.4017, allocations: 0 / 0.5637 GB, free: 2.102 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.0006508/0.4023, allocations: 370 kB / 0.564 GB, free: 1.711 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/0.4024, allocations: 12.03 kB / 0.564 GB, free: 1.699 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001339/0.4025, allocations: 71.11 kB / 0.5641 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.113e-05/0.4026, allocations: 16.84 kB / 0.5641 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003025/0.4029, allocations: 158.2 kB / 0.5643 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/0.4029, allocations: 16.81 kB / 0.5643 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.998e-05/0.403, allocations: 24.38 kB / 0.5643 GB, free: 1.383 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004306/0.4034, allocations: 203.6 kB / 0.5645 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.4034, allocations: 0 / 0.5645 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.454e-05/0.4034, allocations: 12 kB / 0.5645 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.4034, allocations: 8 kB / 0.5645 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002562/0.4037, allocations: 129.7 kB / 0.5647 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007465/0.4044, allocations: 478.9 kB / 0.5651 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.4046, allocations: 50.5 kB / 0.5652 GB, free: 476 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.707e-05/0.4046, allocations: 24.97 kB / 0.5652 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.4046, allocations: 3.984 kB / 0.5652 GB, free: 444 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.06e-05/0.4047, allocations: 34.56 kB / 0.5652 GB, free: 400 kB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.233e-06/0.4047, allocations: 0 / 0.5652 GB, free: 400 kB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003034/0.405, allocations: 85.55 kB / 0.5653 GB, free: 308 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.405, allocations: 55.34 kB / 0.5654 GB, free: 240 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.4051, allocations: 109.8 kB / 0.5655 GB, free: 120 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.4052, allocations: 29.7 kB / 0.5655 GB, free: 84 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.4053, allocations: 140.2 kB / 0.5656 GB, free: 15.94 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.954e-05/0.4053, allocations: 19.84 kB / 0.5656 GB, free: 15.92 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.77e-05/0.4054, allocations: 21.7 kB / 0.5657 GB, free: 15.89 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.4055, allocations: 314.8 kB / 0.566 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.933e-05/0.4056, allocations: 15.98 kB / 0.566 GB, free: 15.56 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.309e-05/0.4056, allocations: 8 kB / 0.566 GB, free: 15.55 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.275e-05/0.4057, allocations: 32.84 kB / 0.566 GB, free: 15.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-06/0.4057, allocations: 4 kB / 0.566 GB, free: 15.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001283/0.4058, allocations: 69.56 kB / 0.5661 GB, free: 15.44 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.4059, allocations: 6.188 kB / 0.5661 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.4059, allocations: 0 / 0.5661 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.4059, allocations: 4 kB / 0.5661 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.03e-05/0.406, allocations: 8 kB / 0.5661 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.406, allocations: 0 / 0.5661 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.957e-05/0.406, allocations: 11.92 kB / 0.5661 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.406, allocations: 4 kB / 0.5661 GB, free: 15.41 MB / 414.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.0001264/0.4062, allocations: 134.6 kB / 0.5662 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.46e-05/0.4062, allocations: 4.438 kB / 0.5663 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.012e-05/0.4062, allocations: 12.05 kB / 0.5663 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.4062, allocations: 0 / 0.5663 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4062, allocations: 0 / 0.5663 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.4062, allocations: 0 / 0.5663 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004079/0.4066, allocations: 353.5 kB / 0.5666 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4066, allocations: 0 / 0.5666 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.271e-05/0.4067, allocations: 12 kB / 0.5666 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.4067, allocations: 0 / 0.5666 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.4067, allocations: 0 / 0.5666 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.4067, allocations: 0 / 0.5666 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.4067, allocations: 3.938 kB / 0.5666 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001861/0.4069, allocations: 163.5 kB / 0.5668 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.128e-05/0.4069, allocations: 3.953 kB / 0.5668 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.571e-05/0.4069, allocations: 8 kB / 0.5668 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.724e-05/0.407, allocations: 7.922 kB / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.588e-05/0.407, allocations: 3.938 kB / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-06/0.407, allocations: 7.984 kB / 0.5668 GB, free: 14.63 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.735e-05/0.407, allocations: 87.58 kB / 0.5669 GB, free: 14.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.407, allocations: 0 / 0.5669 GB, free: 14.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002323/0.4073, allocations: 31.78 kB / 0.5669 GB, free: 14.51 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.0005829/0.4078, allocations: 0.7007 MB / 0.5676 GB, free: 13.79 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001533/0.408, allocations: 32.03 kB / 0.5676 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.408, allocations: 0 / 0.5676 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.376e-05/0.4081, allocations: 23.92 kB / 0.5677 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.4084, allocations: 28.59 kB / 0.5677 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001811/0.4102, allocations: 1.445 MB / 0.5691 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004688/0.4107, allocations: 0.7314 MB / 0.5698 GB, free: 11.42 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.981e-05/0.4107, allocations: 7.781 kB / 0.5698 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.296e-05/0.4108, allocations: 51.41 kB / 0.5699 GB, free: 11.36 MB / 414.1 MB Notification: Performance of SimCode: time 3.5e-07/0.4108, allocations: 4 kB / 0.5699 GB, free: 11.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02312/0.4339, allocations: 1.964 MB / 0.5718 GB, free: 9.465 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.072/8.506, allocations: 6.812 kB / 0.5718 GB, free: 9.461 MB / 414.1 MB " [Timeout remaining time 651] (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: 11.52531991014257] Failed to read output from testmodel.py, exit status != 0: ['time', 'y1', 'y2', 'y3', 'y4', 'y5', 'clock.y', 'mux5.y[1]', 'mux5.y[2]', 'mux5.y[3]', 'mux5.y[4]', 'mux5.y[5]', 'demux5.y[1]', 'demux5.y[2]', 'demux5.y[3]', 'demux5.y[4]', 'demux5.y[5]', 'mux3.y[1]', 'mux3.y[2]', 'mux3.y[3]', 'mux2.y[1]', 'mux2.y[2]', 'demux2.y[1]', 'demux2.y[2]', 'demux3.y[1]', 'demux3.y[2]', 'demux3.y[3]'] 8.574122820049524 8.589963576 8.185160754 Calling exit ...