Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 103.8 kB / 16.27 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 188 kB / 17.2 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.264/1.264, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7201/0.7201, allocations: 122.9 MB / 413.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001338, allocations: 63.89 kB / 0.4912 GB, free: 7.352 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2848, allocations: 77.93 MB / 0.5673 GB, free: 32.71 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.005934/0.2908, allocations: 5.453 MB / 0.5726 GB, free: 28.99 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003419/0.2943, allocations: 2.609 MB / 0.5752 GB, free: 27.23 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002446/0.2945, allocations: 26.31 kB / 0.5752 GB, free: 27.22 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.2961, allocations: 0.6862 MB / 0.5759 GB, free: 26.81 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006633/0.2967, allocations: 408.1 kB / 0.5763 GB, free: 26.57 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007501/0.2975, allocations: 388.7 kB / 0.5766 GB, free: 26.39 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007454/0.2983, allocations: 0.9516 MB / 0.5776 GB, free: 25.96 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005513/0.2988, allocations: 478.8 kB / 0.578 GB, free: 25.78 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003275/0.2992, allocations: 362 kB / 0.5784 GB, free: 25.63 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004101/0.2996, allocations: 408.7 kB / 0.5787 GB, free: 25.45 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.856e-05/0.2997, allocations: 47.84 kB / 0.5788 GB, free: 25.45 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005431/0.3002, allocations: 360 kB / 0.5791 GB, free: 25.34 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002165/0.3004, allocations: 248.5 kB / 0.5794 GB, free: 25.24 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002748/0.3007, allocations: 354.3 kB / 0.5797 GB, free: 25.03 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008357/0.3016, allocations: 0.9576 MB / 0.5806 GB, free: 24.57 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3016, allocations: 3.125 kB / 0.5806 GB, free: 24.57 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3016, allocations: 0 / 0.5806 GB, free: 24.57 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.3016, allocations: 0 / 0.5806 GB, free: 24.57 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001205/0.3028, allocations: 0.9768 MB / 0.5816 GB, free: 23.79 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.3028, allocations: 9.219 kB / 0.5816 GB, free: 23.79 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.744e-05/0.3029, allocations: 101.9 kB / 0.5817 GB, free: 23.7 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001307/0.3043, allocations: 187 kB / 0.5819 GB, free: 23.62 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000517/0.3048, allocations: 495.4 kB / 0.5824 GB, free: 23.21 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.506e-05/0.3048, allocations: 33.56 kB / 0.5824 GB, free: 23.2 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/0.305, allocations: 59.08 kB / 0.5824 GB, free: 23.18 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009045/0.3059, allocations: 0.8264 MB / 0.5833 GB, free: 22.58 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.3059, allocations: 6.5 kB / 0.5833 GB, free: 22.57 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.526e-05/0.306, allocations: 22.53 kB / 0.5833 GB, free: 22.56 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001762/0.3062, allocations: 67.62 kB / 0.5833 GB, free: 22.54 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007215/0.3069, allocations: 0.5678 MB / 0.5839 GB, free: 22.26 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002974/0.3099, allocations: 4.588 MB / 0.5884 GB, free: 18 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003926/0.3103, allocations: 295.7 kB / 0.5887 GB, free: 17.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000254/0.3105, allocations: 227.7 kB / 0.5889 GB, free: 17.72 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.3106, allocations: 4.031 kB / 0.5889 GB, free: 17.72 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.786e-05/0.3106, allocations: 38.41 kB / 0.5889 GB, free: 17.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=33): time 1.573e-06/0.3106, allocations: 1.25 kB / 0.5889 GB, free: 17.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=40): time 0.004783/0.3154, allocations: 2.628 MB / 0.5915 GB, free: 15.99 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.831e-05/0.3154, allocations: 56.09 kB / 0.5915 GB, free: 15.93 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003692/0.3158, allocations: 460.7 kB / 0.592 GB, free: 15.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.3158, allocations: 35.77 kB / 0.592 GB, free: 15.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.316, allocations: 343.6 kB / 0.5923 GB, free: 15.29 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.959e-05/0.316, allocations: 144.2 kB / 0.5925 GB, free: 15.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001414/0.3162, allocations: 105.9 kB / 0.5926 GB, free: 15.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.758e-05/0.3162, allocations: 360.2 kB / 0.5929 GB, free: 14.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003075/0.3166, allocations: 238.9 kB / 0.5932 GB, free: 14.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003585/0.3169, allocations: 410.6 kB / 0.5935 GB, free: 14.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006959/0.3176, allocations: 0.6736 MB / 0.5942 GB, free: 13.81 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3176, allocations: 1.594 kB / 0.5942 GB, free: 13.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001459/0.3191, allocations: 0.9232 MB / 0.5951 GB, free: 13.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.3191, allocations: 7.281 kB / 0.5951 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.3191, allocations: 5.625 kB / 0.5951 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007122/0.3199, allocations: 231 kB / 0.5953 GB, free: 13.17 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004772/0.3203, allocations: 114.7 kB / 0.5954 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003482/0.3238, allocations: 5.339 MB / 0.6007 GB, free: 7.379 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003884/0.3242, allocations: 40.03 kB / 0.6007 GB, free: 7.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.269e-05/0.3243, allocations: 20 kB / 0.6007 GB, free: 7.32 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001999/0.3245, allocations: 222.5 kB / 0.6009 GB, free: 7.094 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.825e-05/0.3246, allocations: 59.28 kB / 0.601 GB, free: 7.035 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001209/0.3258, allocations: 0.7735 MB / 0.6017 GB, free: 6.242 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.3258, allocations: 8 kB / 0.6018 GB, free: 6.234 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3258, allocations: 4 kB / 0.6018 GB, free: 6.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.3258, allocations: 3.984 kB / 0.6018 GB, free: 6.227 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001818/0.3276, allocations: 1.498 MB / 0.6032 GB, free: 4.641 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3277, allocations: 4 kB / 0.6032 GB, free: 4.637 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003282/0.328, allocations: 63.89 kB / 0.6033 GB, free: 4.574 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005714/0.3286, allocations: 202.6 kB / 0.6035 GB, free: 4.367 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.861e-05/0.3286, allocations: 19.98 kB / 0.6035 GB, free: 4.348 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003585/0.3322, allocations: 5.277 MB / 0.6087 GB, free: 14.64 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.3322, allocations: 4 kB / 0.6087 GB, free: 14.64 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001635/0.3339, allocations: 1.133 MB / 0.6098 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002033/0.3341, allocations: 180.3 kB / 0.6099 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.317e-05/0.3342, allocations: 12 kB / 0.6099 GB, free: 13.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003261/0.3345, allocations: 19.97 kB / 0.61 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.228e-05/0.3346, allocations: 43.95 kB / 0.61 GB, free: 13.19 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.713e-05/0.3346, allocations: 12 kB / 0.61 GB, free: 13.18 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003027/0.3349, allocations: 310.9 kB / 0.6103 GB, free: 12.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3349, allocations: 0 / 0.6103 GB, free: 12.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006214/0.3356, allocations: 164 kB / 0.6105 GB, free: 12.72 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001913/0.3375, allocations: 1.692 MB / 0.6121 GB, free: 10.96 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.339, allocations: 1.063 MB / 0.6132 GB, free: 9.863 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.339, allocations: 3.938 kB / 0.6132 GB, free: 9.859 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000889/0.3399, allocations: 0.6799 MB / 0.6138 GB, free: 9.141 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008408/0.3408, allocations: 183 kB / 0.614 GB, free: 8.973 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00692/0.3477, allocations: 5.687 MB / 0.6196 GB, free: 3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.3482, allocations: 0.9416 MB / 0.6205 GB, free: 2.027 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003555/0.3486, allocations: 117 kB / 0.6206 GB, free: 1.914 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/0.3488, allocations: 207.4 kB / 0.6208 GB, free: 1.711 MB / 462.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3488, allocations: 0 / 0.6208 GB, free: 1.711 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03601/0.3848, allocations: 13.92 MB / 0.6344 GB, free: 4.078 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.867/9.252, allocations: 4.062 kB / 0.6344 GB, free: 4.074 MB / 478.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)