Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001288/0.001288, allocations: 122.2 kB / 17.78 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 197.2 kB / 18.72 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.374/1.374, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex 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. Warning: Requested package ModelicaServices 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.001927/0.001927, allocations: 63.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2282, allocations: 50.55 MB / 409 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003014/0.2312, allocations: 1.889 MB / 410.9 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001183/0.2324, allocations: 0.6427 MB / 411.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.853e-05/0.2325, allocations: 4 kB / 411.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.2327, allocations: 31.67 kB / 411.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.2328, allocations: 31.66 kB / 411.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.2331, allocations: 79.78 kB / 411.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002396/0.2333, allocations: 175.4 kB / 411.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.2335, allocations: 68.27 kB / 412 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/0.2337, allocations: 79.62 kB / 412 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001402/0.2338, allocations: 75.62 kB / 412.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.997e-05/0.2339, allocations: 12 kB / 412.1 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.99e-05/0.234, allocations: 27.98 kB / 412.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.786e-05/0.2341, allocations: 47.83 kB / 412.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.488e-05/0.2342, allocations: 83.48 kB / 412.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002741/0.2344, allocations: 198.2 kB / 412.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2345, allocations: 0 / 412.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2345, allocations: 0 / 412.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.2345, allocations: 0 / 412.5 MB, free: 13.93 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008738/0.2353, allocations: 0.5142 MB / 413 MB, free: 13.36 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.2354, allocations: 12.03 kB / 413 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.507e-05/0.2355, allocations: 54.61 kB / 413.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001473/0.2356, allocations: 32.78 kB / 413.1 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.2359, allocations: 236 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.2359, allocations: 8.656 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.2359, allocations: 20.31 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003611/0.2363, allocations: 200 kB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.2363, allocations: 0 / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.2364, allocations: 4 kB / 413.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.314e-05/0.2364, allocations: 8 kB / 413.6 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003115/0.2367, allocations: 147.8 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.2378, allocations: 0.7779 MB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00032/0.2381, allocations: 161.1 kB / 414.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.2383, allocations: 85.89 kB / 414.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.525e-05/0.2383, allocations: 3.984 kB / 414.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002657/0.2386, allocations: 145 kB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.2386, allocations: 0 / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005723/0.2392, allocations: 253.5 kB / 415.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.995e-05/0.2393, allocations: 89.09 kB / 415.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002033/0.2395, allocations: 207.1 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.104e-05/0.2395, allocations: 33.7 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.2396, allocations: 148.3 kB / 415.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/0.2397, allocations: 39.64 kB / 415.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.752e-05/0.2398, allocations: 45.7 kB / 415.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.2399, allocations: 330.8 kB / 416 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.2401, allocations: 71.89 kB / 416.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/0.2403, allocations: 126.8 kB / 416.2 MB, free: 9.918 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00035/0.2407, allocations: 206.7 kB / 416.4 MB, free: 9.691 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2407, allocations: 0 / 416.4 MB, free: 9.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004479/0.2411, allocations: 245.8 kB / 416.6 MB, free: 9.445 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.2411, allocations: 8 kB / 416.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.2412, allocations: 0 / 416.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.2412, allocations: 8.188 kB / 416.6 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.2414, allocations: 35.92 kB / 416.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.2414, allocations: 4 kB / 416.7 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001572/0.2415, allocations: 27.86 kB / 416.7 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.98e-05/0.2416, allocations: 12.08 kB / 416.7 MB, free: 9.352 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.00016/0.2417, allocations: 153.7 kB / 416.9 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.97e-05/0.2418, allocations: 19.84 kB / 416.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000458/0.2422, allocations: 218.8 kB / 417.1 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.2422, allocations: 4 kB / 417.1 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.2423, allocations: 0 / 417.1 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.2423, allocations: 0 / 417.1 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003018/0.2426, allocations: 277.4 kB / 417.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.2426, allocations: 0 / 417.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.2427, allocations: 19.98 kB / 417.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.2427, allocations: 0 / 417.4 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.2427, allocations: 8 kB / 417.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.2427, allocations: 4 kB / 417.4 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2427, allocations: 0 / 417.4 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004053/0.2431, allocations: 237 kB / 417.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.071e-05/0.2432, allocations: 89.02 kB / 417.7 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.19e-05/0.2433, allocations: 11.98 kB / 417.7 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.2434, allocations: 19.98 kB / 417.8 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.796e-05/0.2435, allocations: 19.97 kB / 417.8 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/0.2435, allocations: 4 kB / 417.8 MB, free: 8.188 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001384/0.2436, allocations: 144.7 kB / 417.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2436, allocations: 0 / 417.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002627/0.2439, allocations: 39.89 kB / 418 MB, free: 8.008 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008084/0.2447, allocations: 0.7692 MB / 418.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003871/0.2451, allocations: 171.8 kB / 418.9 MB, free: 7.035 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2451, allocations: 384 / 418.9 MB, free: 7.035 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001856/0.2453, allocations: 87.89 kB / 419 MB, free: 6.949 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003274/0.2457, allocations: 40.2 kB / 419 MB, free: 6.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002789/0.2485, allocations: 2.182 MB / 421.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003883/0.2489, allocations: 0.7474 MB / 421.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001151/0.249, allocations: 37.61 kB / 422 MB, free: 3.781 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.409e-05/0.2491, allocations: 55.36 kB / 422 MB, free: 3.73 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2491, allocations: 0 / 422 MB, free: 3.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02497/0.2741, allocations: 4.148 MB / 426.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.94/8.214, allocations: 4.062 kB / 426.2 MB, free: 15.68 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1)