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.001266/0.001266, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00135/0.00135, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2222/0.2222, allocations: 46.13 MB / 344.2 MB, free: 11.56 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.002339/0.002339, allocations: 87.44 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1122, allocations: 62.45 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002834/0.1151, allocations: 1.553 MB / 481.8 MB, free: 3.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002616/0.1154, allocations: 63.75 kB / 481.8 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.46e-05/0.1155, allocations: 3.938 kB / 481.8 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.1156, allocations: 23.78 kB / 481.9 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.321e-05/0.1157, allocations: 3.938 kB / 481.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001322/0.1158, allocations: 23.98 kB / 481.9 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001114/0.1159, allocations: 67.88 kB / 481.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002762/0.1162, allocations: 131.3 kB / 482.1 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.909e-05/0.1163, allocations: 43.84 kB / 482.1 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.788e-05/0.1164, allocations: 39.84 kB / 482.2 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.1164, allocations: 8 kB / 482.2 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.997e-05/0.1164, allocations: 8 kB / 482.2 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.789e-05/0.1165, allocations: 63.83 kB / 482.2 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.473e-05/0.1166, allocations: 71.58 kB / 482.3 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001775/0.1168, allocations: 135.5 kB / 482.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1168, allocations: 0 / 482.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1168, allocations: 0 / 482.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.251e-06/0.1168, allocations: 0 / 482.4 MB, free: 2.891 MB / 350.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.0005425/0.1174, allocations: 446 kB / 482.9 MB, free: 2.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.1174, allocations: 8.031 kB / 482.9 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.642e-05/0.1175, allocations: 71 kB / 482.9 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.865e-05/0.1175, allocations: 16.75 kB / 483 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000221/0.1178, allocations: 212.1 kB / 483.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.1178, allocations: 16.81 kB / 483.2 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.123e-05/0.1178, allocations: 24.38 kB / 483.2 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003607/0.1182, allocations: 211.5 kB / 483.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.1182, allocations: 7.938 kB / 483.4 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.1182, allocations: 12 kB / 483.4 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.1183, allocations: 4 kB / 483.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000243/0.1185, allocations: 133.6 kB / 483.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006702/0.1192, allocations: 0.5216 MB / 484.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.033e-05/0.1193, allocations: 38.56 kB / 484.1 MB, free: 1.035 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.868e-05/0.1194, allocations: 32.97 kB / 484.2 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.099e-05/0.1194, allocations: 0 / 484.2 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.1194, allocations: 30.56 kB / 484.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 8.71e-07/0.1194, allocations: 4 kB / 484.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002293/0.1197, allocations: 73.61 kB / 484.3 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.1197, allocations: 51.41 kB / 484.3 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.466e-05/0.1198, allocations: 109.8 kB / 484.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.1198, allocations: 29.7 kB / 484.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.004e-05/0.1199, allocations: 143.9 kB / 484.6 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.963e-05/0.1199, allocations: 15.75 kB / 484.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.328e-05/0.12, allocations: 17.72 kB / 484.6 MB, free: 492 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1201, allocations: 326.8 kB / 484.9 MB, free: 156 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.246e-05/0.1202, allocations: 8 kB / 485 MB, free: 148 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.659e-05/0.1202, allocations: 15.98 kB / 485 MB, free: 132 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.07e-05/0.1203, allocations: 28.84 kB / 485 MB, free: 100 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1203, allocations: 0 / 485 MB, free: 100 kB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001209/0.1204, allocations: 61.62 kB / 485.1 MB, free: 32 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.1205, allocations: 15.92 kB / 485.1 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.1205, allocations: 4 kB / 485.1 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.1205, allocations: 0 / 485.1 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.229e-05/0.1206, allocations: 8.438 kB / 485.1 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.1206, allocations: 0 / 485.1 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.671e-05/0.1206, allocations: 7.953 kB / 485.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.1207, allocations: 8.312 kB / 485.1 MB, free: 15.98 MB / 366.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.0001048/0.1208, allocations: 133.7 kB / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.874e-05/0.1208, allocations: 8 kB / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.712e-05/0.1208, allocations: 7.969 kB / 485.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.1208, allocations: 0 / 485.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.1208, allocations: 7.938 kB / 485.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.1208, allocations: 3.984 kB / 485.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004122/0.1213, allocations: 366.5 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1213, allocations: 3.984 kB / 485.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.766e-05/0.1213, allocations: 8 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1213, allocations: 0 / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.1214, allocations: 4 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1214, allocations: 0 / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.1214, allocations: 3.938 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001771/0.1216, allocations: 167.4 kB / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.073e-05/0.1216, allocations: 85.09 kB / 485.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.1216, allocations: 0 / 485.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.692e-05/0.1217, allocations: 3.984 kB / 485.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.484e-05/0.1217, allocations: 11.94 kB / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-06/0.1217, allocations: 0 / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.706e-05/0.1218, allocations: 91.27 kB / 486 MB, free: 15 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1218, allocations: 0 / 486 MB, free: 15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000238/0.122, allocations: 27.69 kB / 486 MB, free: 14.97 MB / 366.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.0005833/0.1226, allocations: 0.7123 MB / 486.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001557/0.1228, allocations: 44.22 kB / 486.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1228, allocations: 0 / 486.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.743e-05/0.1229, allocations: 15.94 kB / 486.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.1232, allocations: 19.92 kB / 486.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00169/0.1249, allocations: 1.434 MB / 488.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004198/0.1253, allocations: 0.7314 MB / 489 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.513e-05/0.1254, allocations: 11.92 kB / 489 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.886e-05/0.1255, allocations: 47.42 kB / 489 MB, free: 11.82 MB / 366.1 MB Notification: Performance of SimCode: time 3.617e-06/0.1255, allocations: 112 / 489 MB, free: 11.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02316/0.1486, allocations: 1.902 MB / 490.9 MB, free: 9.969 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.519/7.668, allocations: 4 kB / 490.9 MB, free: 9.965 MB / 366.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)