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.001624/0.001624, 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.002229/0.002229, allocations: 213.9 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.525/1.525, allocations: 230.5 MB / 258.2 MB, free: 8.035 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.2708/0.2708, allocations: 46.93 MB / 361.6 MB, free: 4.227 MB / 286.1 MB " [Timeout remaining time 179] 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.003409/0.003409, allocations: 79.86 kB / 0.497 GB, free: 7.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.417/0.4204, allocations: 66.09 MB / 0.5615 GB, free: 4.332 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003348/0.4238, allocations: 1.573 MB / 0.563 GB, free: 2.754 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002836/0.424, allocations: 59.75 kB / 0.5631 GB, free: 2.695 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.003e-05/0.4241, allocations: 4 kB / 0.5631 GB, free: 2.691 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001702/0.4243, allocations: 19.8 kB / 0.5631 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.367e-05/0.4243, allocations: 3.938 kB / 0.5631 GB, free: 2.668 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001646/0.4245, allocations: 27.97 kB / 0.5632 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001442/0.4246, allocations: 71.81 kB / 0.5632 GB, free: 2.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002969/0.4249, allocations: 93.56 kB / 0.5633 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.306e-05/0.425, allocations: 31.92 kB / 0.5633 GB, free: 2.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.534e-05/0.4251, allocations: 43.84 kB / 0.5634 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.736e-05/0.4251, allocations: 12 kB / 0.5634 GB, free: 2.387 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.935e-05/0.4251, allocations: 8 kB / 0.5634 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.788e-05/0.4252, allocations: 67.81 kB / 0.5635 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.4253, allocations: 67.59 kB / 0.5635 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002197/0.4255, allocations: 155.3 kB / 0.5637 GB, free: 2.094 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.4255, allocations: 0 / 0.5637 GB, free: 2.094 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4255, allocations: 0 / 0.5637 GB, free: 2.094 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.4255, allocations: 0 / 0.5637 GB, free: 2.094 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.0005955/0.4261, allocations: 370 kB / 0.564 GB, free: 1.703 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.4262, allocations: 8.031 kB / 0.564 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001171/0.4263, allocations: 71.06 kB / 0.5641 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.541e-05/0.4263, allocations: 16.84 kB / 0.5641 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002539/0.4266, allocations: 162.3 kB / 0.5643 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.4266, allocations: 16.81 kB / 0.5643 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.034e-05/0.4266, allocations: 20.38 kB / 0.5643 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004134/0.4271, allocations: 211.5 kB / 0.5645 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.4271, allocations: 3.984 kB / 0.5645 GB, free: 1.164 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.279e-05/0.4271, allocations: 12 kB / 0.5645 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.4271, allocations: 8 kB / 0.5645 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002657/0.4274, allocations: 133.6 kB / 0.5647 GB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000801/0.4282, allocations: 478.9 kB / 0.5651 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001054/0.4283, allocations: 42.56 kB / 0.5652 GB, free: 464 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.91e-05/0.4284, allocations: 24.97 kB / 0.5652 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.4284, allocations: 0 / 0.5652 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.494e-05/0.4284, allocations: 38.5 kB / 0.5652 GB, free: 388 kB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 9.92e-07/0.4284, allocations: 0 / 0.5652 GB, free: 388 kB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.000286/0.4287, allocations: 81.56 kB / 0.5653 GB, free: 300 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.067e-05/0.4287, allocations: 51.41 kB / 0.5653 GB, free: 236 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.4289, allocations: 113.8 kB / 0.5655 GB, free: 112 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.4289, allocations: 29.7 kB / 0.5655 GB, free: 76 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.429, allocations: 144.1 kB / 0.5656 GB, free: 15.93 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.582e-05/0.429, allocations: 19.84 kB / 0.5656 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.862e-05/0.4291, allocations: 17.72 kB / 0.5657 GB, free: 15.89 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.4292, allocations: 318.8 kB / 0.566 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.845e-05/0.4293, allocations: 12 kB / 0.566 GB, free: 15.55 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.452e-05/0.4293, allocations: 12.23 kB / 0.566 GB, free: 15.54 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.424e-05/0.4294, allocations: 36.84 kB / 0.566 GB, free: 15.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4294, allocations: 4 kB / 0.566 GB, free: 15.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001436/0.4296, allocations: 65.58 kB / 0.5661 GB, free: 15.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.4296, allocations: 10.48 kB / 0.5661 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.4296, allocations: 0 / 0.5661 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.4296, allocations: 4 kB / 0.5661 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.528e-05/0.4297, allocations: 8 kB / 0.5661 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.4297, allocations: 0 / 0.5661 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.842e-05/0.4297, allocations: 7.938 kB / 0.5661 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.4297, allocations: 4 kB / 0.5661 GB, free: 15.4 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.0001339/0.4299, allocations: 138.6 kB / 0.5663 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.641e-05/0.4299, allocations: 4 kB / 0.5663 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.557e-05/0.4299, allocations: 8.062 kB / 0.5663 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.4299, allocations: 0 / 0.5663 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.4299, allocations: 0 / 0.5663 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.4299, allocations: 3.984 kB / 0.5663 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004266/0.4304, allocations: 345.5 kB / 0.5666 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.4304, allocations: 0 / 0.5666 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.568e-05/0.4304, allocations: 15.98 kB / 0.5666 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.4304, allocations: 0 / 0.5666 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.4304, allocations: 4 kB / 0.5666 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.4304, allocations: 256 / 0.5666 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.4304, allocations: 3.938 kB / 0.5666 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002242/0.4306, allocations: 167.5 kB / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.08e-05/0.4307, allocations: 7.891 kB / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.4307, allocations: 4 kB / 0.5668 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.193e-05/0.4307, allocations: 0 / 0.5668 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.766e-05/0.4307, allocations: 11.92 kB / 0.5668 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.4308, allocations: 4 kB / 0.5668 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.52e-05/0.4308, allocations: 79.28 kB / 0.5669 GB, free: 14.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4308, allocations: 0 / 0.5669 GB, free: 14.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002471/0.4311, allocations: 35.78 kB / 0.5669 GB, free: 14.5 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.0006188/0.4317, allocations: 0.7046 MB / 0.5676 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001425/0.4318, allocations: 32.03 kB / 0.5676 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.4318, allocations: 0 / 0.5676 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.027e-05/0.4319, allocations: 19.94 kB / 0.5677 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.4322, allocations: 23.86 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.00177/0.434, allocations: 1.443 MB / 0.5691 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004745/0.4345, allocations: 0.7353 MB / 0.5698 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.556e-05/0.4345, 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 9.935e-05/0.4346, allocations: 51.41 kB / 0.5699 GB, free: 11.36 MB / 414.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4346, allocations: 4 kB / 0.5699 GB, free: 11.35 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02698/0.4616, allocations: 1.967 MB / 0.5718 GB, free: 9.457 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.058/8.519, allocations: 4 kB / 0.5718 GB, free: 9.453 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 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.536861260887235] 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.588896112982184 8.605641876 8.175421259 Calling exit ...