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.001778/0.001778, allocations: 109.4 kB / 19.8 MB, free: 2.516 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.002212/0.002212, allocations: 219.5 kB / 23 MB, free: 5.609 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.493/1.493, allocations: 230.2 MB / 256.2 MB, free: 8.711 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.2459/0.2459, allocations: 46.89 MB / 359.4 MB, free: 4.953 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.003302/0.003302, allocations: 71.88 kB / 0.4941 GB, free: 9.055 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3721/0.3754, allocations: 65.98 MB / 0.5586 GB, free: 5.203 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.00386/0.3793, allocations: 1.578 MB / 0.5601 GB, free: 3.613 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002645/0.3796, allocations: 55.77 kB / 0.5602 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.267e-05/0.3796, allocations: 4 kB / 0.5602 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001426/0.3798, allocations: 19.84 kB / 0.5602 GB, free: 3.535 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.706e-05/0.3798, allocations: 7.938 kB / 0.5602 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001457/0.3799, allocations: 31.89 kB / 0.5602 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001273/0.3801, allocations: 67.83 kB / 0.5603 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002561/0.3803, allocations: 93.22 kB / 0.5604 GB, free: 3.332 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.841e-05/0.3804, allocations: 31.92 kB / 0.5604 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000117/0.3805, allocations: 51.81 kB / 0.5605 GB, free: 3.25 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.262e-05/0.3805, allocations: 8 kB / 0.5605 GB, free: 3.242 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.706e-05/0.3805, allocations: 8 kB / 0.5605 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.595e-05/0.3806, allocations: 63.83 kB / 0.5605 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.186e-05/0.3807, allocations: 67.59 kB / 0.5606 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002151/0.3809, allocations: 151.3 kB / 0.5607 GB, free: 2.957 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3809, allocations: 0 / 0.5607 GB, free: 2.957 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3809, allocations: 0 / 0.5607 GB, free: 2.957 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.381, allocations: 0 / 0.5607 GB, free: 2.957 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.000647/0.3816, allocations: 451.1 kB / 0.5612 GB, free: 2.469 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.3816, allocations: 8.031 kB / 0.5612 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001057/0.3818, allocations: 67.11 kB / 0.5612 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.491e-05/0.3818, allocations: 16.84 kB / 0.5613 GB, free: 2.367 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/0.3821, allocations: 224 kB / 0.5615 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.3821, allocations: 12.81 kB / 0.5615 GB, free: 2.098 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.597e-05/0.3821, allocations: 24.38 kB / 0.5615 GB, free: 2.074 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004015/0.3825, allocations: 211.5 kB / 0.5617 GB, free: 1.863 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.3825, allocations: 4 kB / 0.5617 GB, free: 1.859 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.013e-05/0.3826, allocations: 8 kB / 0.5617 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.3826, allocations: 4 kB / 0.5617 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002493/0.3828, allocations: 133.6 kB / 0.5619 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007675/0.3836, allocations: 0.5102 MB / 0.5623 GB, free: 1.156 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001062/0.3837, allocations: 42.5 kB / 0.5624 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.83e-05/0.3838, allocations: 28.97 kB / 0.5624 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.3838, allocations: 0 / 0.5624 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.3838, allocations: 38.55 kB / 0.5625 GB, free: 1.027 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.042e-06/0.3838, allocations: 3.938 kB / 0.5625 GB, free: 1.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.000255/0.3841, allocations: 77.62 kB / 0.5625 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/0.3841, allocations: 55.41 kB / 0.5626 GB, free: 0.875 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.323e-05/0.3842, allocations: 109.8 kB / 0.5627 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.3842, allocations: 25.7 kB / 0.5627 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.3844, allocations: 148.2 kB / 0.5629 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.3844, allocations: 15.84 kB / 0.5629 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.323e-05/0.3844, allocations: 13.72 kB / 0.5629 GB, free: 0.543 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002255/0.3846, allocations: 326.8 kB / 0.5632 GB, free: 220 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.047e-05/0.3847, allocations: 8 kB / 0.5632 GB, free: 212 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.823e-05/0.3847, allocations: 15.98 kB / 0.5632 GB, free: 196 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.306e-05/0.3848, allocations: 32.84 kB / 0.5633 GB, free: 160 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3848, allocations: 0 / 0.5633 GB, free: 160 kB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001313/0.3849, allocations: 65.62 kB / 0.5633 GB, free: 88 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.3849, allocations: 4 kB / 0.5633 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.385, allocations: 0 / 0.5633 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.385, allocations: 0 / 0.5633 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.3851, allocations: 19.94 kB / 0.5633 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.3851, allocations: 0 / 0.5633 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.987e-05/0.3851, allocations: 7.938 kB / 0.5633 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-06/0.3851, allocations: 3.984 kB / 0.5633 GB, free: 52 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.0001452/0.3853, allocations: 137.8 kB / 0.5635 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.699e-05/0.3853, allocations: 3.953 kB / 0.5635 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.104e-05/0.3853, allocations: 3.969 kB / 0.5635 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.3853, allocations: 4 kB / 0.5635 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.3853, allocations: 7.984 kB / 0.5635 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.3853, allocations: 0 / 0.5635 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005035/0.3858, allocations: 374.9 kB / 0.5639 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.3858, allocations: 64 / 0.5639 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.673e-05/0.3859, allocations: 12 kB / 0.5639 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.3859, allocations: 0 / 0.5639 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.3859, allocations: 0 / 0.5639 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.3859, allocations: 4 kB / 0.5639 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3859, allocations: 3.938 kB / 0.5639 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001862/0.3861, allocations: 159.5 kB / 0.564 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.274e-05/0.3861, allocations: 85.06 kB / 0.5641 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.3861, allocations: 11.81 kB / 0.5641 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.842e-05/0.3862, allocations: 7.984 kB / 0.5641 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.354e-05/0.3862, allocations: 3.938 kB / 0.5641 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.3862, allocations: 0 / 0.5641 GB, free: 15.15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.493e-05/0.3863, allocations: 91.27 kB / 0.5642 GB, free: 15.06 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3863, allocations: 4 kB / 0.5642 GB, free: 15.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002394/0.3865, allocations: 31.78 kB / 0.5643 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.0005792/0.3871, allocations: 0.6968 MB / 0.5649 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000155/0.3873, allocations: 39.97 kB / 0.565 GB, free: 14.26 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3873, allocations: 4 kB / 0.565 GB, free: 14.26 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.083e-05/0.3873, allocations: 12 kB / 0.565 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003262/0.3876, allocations: 16.3 kB / 0.565 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.3894, allocations: 1.453 MB / 0.5664 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005524/0.39, allocations: 0.7314 MB / 0.5671 GB, free: 11.95 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.321e-05/0.39, allocations: 11.78 kB / 0.5671 GB, free: 11.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.531e-05/0.3901, allocations: 51.36 kB / 0.5672 GB, free: 11.88 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3901, allocations: 0 / 0.5672 GB, free: 11.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02478/0.4149, allocations: 1.937 MB / 0.5691 GB, free: 10.01 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.006/8.421, allocations: 15.5 kB / 0.5691 GB, free: 10 MB / 414.1 MB " [Timeout remaining time 652] (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 --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.426234937011031] 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.493526495003607 8.520804716 8.134450879 Calling exit ...