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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001289/0.001289, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.00132, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 247 MB, free: 10.43 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.2344/0.2344, allocations: 46.12 MB / 344.3 MB, free: 11.45 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.002329/0.002329, allocations: 83.84 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4683/0.4706, allocations: 62.44 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002883/0.4735, allocations: 1.563 MB / 0.5321 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002553/0.4738, allocations: 64.03 kB / 0.5322 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.36e-05/0.4739, allocations: 1.062 kB / 0.5322 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001729/0.4741, allocations: 22.03 kB / 0.5322 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.698e-05/0.4741, allocations: 5.094 kB / 0.5322 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001429/0.4743, allocations: 21.64 kB / 0.5322 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000121/0.4744, allocations: 76.36 kB / 0.5323 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002846/0.4747, allocations: 130.3 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.279e-05/0.4748, allocations: 37.95 kB / 0.5325 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.652e-05/0.4748, allocations: 38.59 kB / 0.5325 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.633e-05/0.4749, allocations: 9.344 kB / 0.5325 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.821e-05/0.4749, allocations: 8 kB / 0.5325 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.475, allocations: 74.98 kB / 0.5326 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.301e-05/0.4751, allocations: 64.33 kB / 0.5327 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002089/0.4753, allocations: 153.7 kB / 0.5328 GB, free: 11.69 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.4753, allocations: 0 / 0.5328 GB, free: 11.69 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4753, allocations: 0 / 0.5328 GB, free: 11.69 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.4753, allocations: 0 / 0.5328 GB, free: 11.69 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.0005979/0.4759, allocations: 445.9 kB / 0.5332 GB, free: 11.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.476, allocations: 10.88 kB / 0.5332 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001026/0.4761, allocations: 62.06 kB / 0.5333 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.2e-05/0.4762, allocations: 17.81 kB / 0.5333 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002705/0.4764, allocations: 223.3 kB / 0.5335 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.4765, allocations: 17.25 kB / 0.5335 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.094e-05/0.4765, allocations: 17.84 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003812/0.4769, allocations: 216.9 kB / 0.5338 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.4769, allocations: 9.359 kB / 0.5338 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.944e-05/0.4769, allocations: 5.375 kB / 0.5338 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.4769, allocations: 5.5 kB / 0.5338 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002317/0.4772, allocations: 129.2 kB / 0.5339 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007204/0.4779, allocations: 0.5147 MB / 0.5344 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001138/0.478, allocations: 45.69 kB / 0.5345 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.743e-05/0.4781, allocations: 28.09 kB / 0.5345 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.104e-05/0.4781, allocations: 1.375 kB / 0.5345 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.4782, allocations: 34.5 kB / 0.5345 GB, free: 10.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.292e-06/0.4782, allocations: 0 / 0.5345 GB, free: 10.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002538/0.4784, allocations: 78.5 kB / 0.5346 GB, free: 10.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/0.4785, allocations: 56.78 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.4786, allocations: 107.5 kB / 0.5347 GB, free: 9.949 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.4786, allocations: 25.7 kB / 0.5348 GB, free: 9.918 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.595e-05/0.4787, allocations: 143.2 kB / 0.5349 GB, free: 9.785 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.171e-05/0.4788, allocations: 17.27 kB / 0.5349 GB, free: 9.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.422e-05/0.4788, allocations: 17.84 kB / 0.5349 GB, free: 9.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.479, allocations: 316.2 kB / 0.5352 GB, free: 9.434 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.868e-05/0.479, allocations: 18.86 kB / 0.5353 GB, free: 9.422 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.817e-05/0.4791, allocations: 15.17 kB / 0.5353 GB, free: 9.414 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.35e-05/0.4792, allocations: 37.34 kB / 0.5353 GB, free: 9.391 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.582e-06/0.4792, allocations: 0 / 0.5353 GB, free: 9.391 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000128/0.4793, allocations: 64.11 kB / 0.5354 GB, free: 9.344 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.4793, allocations: 4.5 kB / 0.5354 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4793, allocations: 1.344 kB / 0.5354 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.4794, allocations: 0 / 0.5354 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.884e-05/0.4795, allocations: 20.61 kB / 0.5354 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.4795, allocations: 0 / 0.5354 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.929e-05/0.4795, allocations: 6.375 kB / 0.5354 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.768e-06/0.4795, allocations: 1.312 kB / 0.5354 GB, free: 9.328 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: 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.0001274/0.4797, allocations: 143 kB / 0.5355 GB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.507e-05/0.4797, allocations: 6.922 kB / 0.5355 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.195e-05/0.4797, allocations: 7.969 kB / 0.5356 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.4797, allocations: 1.406 kB / 0.5356 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.4797, allocations: 0 / 0.5356 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.4797, allocations: 5.281 kB / 0.5356 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004257/0.4802, allocations: 365.7 kB / 0.5359 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.4802, allocations: 0 / 0.5359 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.738e-05/0.4802, allocations: 13.58 kB / 0.5359 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.4802, allocations: 0 / 0.5359 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.4803, allocations: 4 kB / 0.5359 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.4803, allocations: 5.219 kB / 0.5359 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.4803, allocations: 3.938 kB / 0.5359 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001902/0.4805, allocations: 163.2 kB / 0.5361 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.608e-05/0.4805, allocations: 82.19 kB / 0.5362 GB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.339e-05/0.4805, allocations: 1.094 kB / 0.5362 GB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.358e-05/0.4806, allocations: 2.188 kB / 0.5362 GB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.855e-05/0.4806, allocations: 9.156 kB / 0.5362 GB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-06/0.4806, allocations: 1.031 kB / 0.5362 GB, free: 8.547 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.801e-05/0.4807, allocations: 86.36 kB / 0.5363 GB, free: 8.469 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4807, allocations: 3.938 kB / 0.5363 GB, free: 8.465 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000236/0.481, allocations: 38.94 kB / 0.5363 GB, free: 8.441 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: 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.0005943/0.4816, allocations: 0.7033 MB / 0.537 GB, free: 7.758 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001479/0.4817, allocations: 32.48 kB / 0.537 GB, free: 7.746 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4817, allocations: 4 kB / 0.537 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.567e-05/0.4818, allocations: 19.27 kB / 0.537 GB, free: 7.734 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003461/0.4821, allocations: 19.25 kB / 0.5371 GB, free: 7.723 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.4838, allocations: 1.448 MB / 0.5385 GB, free: 6.398 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004266/0.4842, allocations: 0.7312 MB / 0.5392 GB, free: 5.676 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.21e-05/0.4843, allocations: 14.39 kB / 0.5392 GB, free: 5.664 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.672e-05/0.4844, allocations: 47.52 kB / 0.5392 GB, free: 5.621 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.4844, allocations: 0 / 0.5392 GB, free: 5.621 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02343/0.5078, allocations: 1.953 MB / 0.5412 GB, free: 4.551 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.096/8.604, allocations: 12.38 kB / 0.5412 GB, free: 4.543 MB / 398.1 MB (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)