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.001332/0.001332, allocations: 121.6 kB / 17.78 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.001354/0.001354, 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.478/1.478, allocations: 227.4 MB / 247 MB, free: 10.47 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.2419/0.2419, allocations: 46.12 MB / 344.4 MB, free: 11.46 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.002277/0.002277, allocations: 79.86 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.349, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002879/0.352, allocations: 1.563 MB / 0.5321 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002526/0.3522, allocations: 71.88 kB / 0.5322 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.58e-05/0.3523, allocations: 1.344 kB / 0.5322 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000142/0.3524, allocations: 26.88 kB / 0.5322 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.419e-05/0.3525, allocations: 3.938 kB / 0.5322 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001276/0.3526, allocations: 21.42 kB / 0.5322 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.3527, allocations: 69.66 kB / 0.5323 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002561/0.353, allocations: 128.8 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.637e-05/0.3531, allocations: 38.11 kB / 0.5325 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.692e-05/0.3531, allocations: 38.81 kB / 0.5325 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.359e-05/0.3532, allocations: 12.34 kB / 0.5325 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.897e-05/0.3532, allocations: 9.344 kB / 0.5325 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.312e-05/0.3533, allocations: 67.72 kB / 0.5326 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.092e-05/0.3534, allocations: 68.23 kB / 0.5327 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002069/0.3536, allocations: 148.1 kB / 0.5328 GB, free: 11.69 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.3536, allocations: 9.719 kB / 0.5328 GB, free: 11.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3536, allocations: 0 / 0.5328 GB, free: 11.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.251e-06/0.3536, allocations: 0 / 0.5328 GB, free: 11.68 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.0005696/0.3542, allocations: 441.9 kB / 0.5332 GB, free: 11.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.3542, allocations: 15.84 kB / 0.5332 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.672e-05/0.3543, allocations: 59.31 kB / 0.5333 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.641e-05/0.3544, allocations: 18.09 kB / 0.5333 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002438/0.3546, allocations: 232.8 kB / 0.5335 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.3547, allocations: 13.06 kB / 0.5336 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.793e-05/0.3547, allocations: 20.75 kB / 0.5336 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003574/0.3551, allocations: 210.2 kB / 0.5338 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.3551, allocations: 0 / 0.5338 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.3551, allocations: 5.375 kB / 0.5338 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.3551, allocations: 9.5 kB / 0.5338 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002261/0.3553, allocations: 129.2 kB / 0.5339 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006694/0.356, allocations: 0.5108 MB / 0.5344 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.93e-05/0.3561, allocations: 47 kB / 0.5345 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.272e-05/0.3562, allocations: 31.88 kB / 0.5345 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.458e-06/0.3562, allocations: 0 / 0.5345 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/0.3563, allocations: 31.88 kB / 0.5345 GB, free: 10.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 2.876e-06/0.3563, allocations: 3.984 kB / 0.5345 GB, free: 10.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002384/0.3565, allocations: 78.5 kB / 0.5346 GB, free: 10.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/0.3566, allocations: 56.56 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.3567, allocations: 110.7 kB / 0.5348 GB, free: 9.945 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.3567, allocations: 26.77 kB / 0.5348 GB, free: 9.914 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.278e-05/0.3568, allocations: 142.5 kB / 0.5349 GB, free: 9.781 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.321e-05/0.3568, allocations: 17.36 kB / 0.5349 GB, free: 9.766 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.3569, allocations: 13.91 kB / 0.5349 GB, free: 9.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.357, allocations: 319.7 kB / 0.5352 GB, free: 9.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.636e-05/0.3571, allocations: 11.48 kB / 0.5353 GB, free: 9.426 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.858e-05/0.3571, allocations: 14.8 kB / 0.5353 GB, free: 9.418 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.829e-05/0.3572, allocations: 36.91 kB / 0.5353 GB, free: 9.395 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3573, allocations: 384 / 0.5353 GB, free: 9.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001334/0.3574, allocations: 71.58 kB / 0.5354 GB, free: 9.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.3574, allocations: 5.156 kB / 0.5354 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.3574, allocations: 1.125 kB / 0.5354 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.3574, allocations: 3.938 kB / 0.5354 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.689e-05/0.3575, allocations: 12.36 kB / 0.5354 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.3575, allocations: 0.6562 kB / 0.5354 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.91e-05/0.3576, allocations: 10.53 kB / 0.5354 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.3576, allocations: 1.188 kB / 0.5354 GB, free: 9.324 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.0001379/0.3577, allocations: 139.8 kB / 0.5355 GB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.833e-05/0.3578, allocations: 9.672 kB / 0.5356 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.111e-05/0.3578, allocations: 5.25 kB / 0.5356 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.3578, allocations: 0 / 0.5356 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.3578, allocations: 1.281 kB / 0.5356 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.3578, allocations: 0 / 0.5356 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004414/0.3583, allocations: 378.8 kB / 0.5359 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3583, allocations: 0 / 0.5359 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.709e-05/0.3583, allocations: 11.83 kB / 0.5359 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.3583, allocations: 1.188 kB / 0.5359 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-06/0.3584, allocations: 0 / 0.5359 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3584, allocations: 1.156 kB / 0.5359 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3584, allocations: 3.938 kB / 0.5359 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001789/0.3586, allocations: 167.3 kB / 0.5361 GB, free: 8.648 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.818e-05/0.3586, allocations: 82.12 kB / 0.5362 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.3586, allocations: 1.156 kB / 0.5362 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.426e-05/0.3587, allocations: 2.25 kB / 0.5362 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.427e-05/0.3587, allocations: 5.219 kB / 0.5362 GB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.3587, allocations: 1.344 kB / 0.5362 GB, free: 8.547 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.311e-05/0.3588, allocations: 89.45 kB / 0.5363 GB, free: 8.465 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3588, allocations: 0 / 0.5363 GB, free: 8.465 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002427/0.359, allocations: 34.84 kB / 0.5363 GB, free: 8.445 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.0005634/0.3596, allocations: 0.7151 MB / 0.537 GB, free: 7.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001352/0.3598, allocations: 28.7 kB / 0.537 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3598, allocations: 0 / 0.537 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.567e-05/0.3598, allocations: 20.52 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.0003086/0.3601, allocations: 17.72 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.001502/0.3616, allocations: 1.453 MB / 0.5385 GB, free: 6.395 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/0.362, allocations: 0.7332 MB / 0.5392 GB, free: 5.672 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.528e-05/0.3621, allocations: 10.8 kB / 0.5392 GB, free: 5.664 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.139e-05/0.3622, allocations: 47.08 kB / 0.5393 GB, free: 5.621 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3622, allocations: 4 kB / 0.5393 GB, free: 5.617 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02335/0.3855, allocations: 1.943 MB / 0.5412 GB, free: 4.551 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.013/8.398, allocations: 4.25 kB / 0.5412 GB, free: 4.551 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 & 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.0008 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.MuxDemux.pipe 2>&1)