Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_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.0048/0.0048, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.001198/0.001198, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.196/1.196, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002007/0.002007, allocations: 289.6 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8757/0.8757, allocations: 169.2 MB / 0.4983 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 99.84 kB / 0.681 GB, free: 7.465 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3479, allocations: 86.97 MB / 0.7659 GB, free: 3.891 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006583/0.3545, allocations: 5.462 MB / 0.7712 GB, free: 14.41 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003816/0.3583, allocations: 2.619 MB / 0.7738 GB, free: 11.78 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003832/0.3587, allocations: 19.88 kB / 0.7738 GB, free: 11.76 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001686/0.3605, allocations: 0.6807 MB / 0.7745 GB, free: 11.07 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0008181/0.3613, allocations: 421.8 kB / 0.7749 GB, free: 10.66 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008076/0.3621, allocations: 394.2 kB / 0.7753 GB, free: 10.28 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0007888/0.3629, allocations: 0.963 MB / 0.7762 GB, free: 9.309 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005165/0.3634, allocations: 458.5 kB / 0.7766 GB, free: 8.859 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00036/0.3638, allocations: 374.7 kB / 0.777 GB, free: 8.492 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004285/0.3642, allocations: 406.4 kB / 0.7774 GB, free: 8.094 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.306e-05/0.3643, allocations: 48 kB / 0.7774 GB, free: 8.047 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005671/0.3649, allocations: 367.2 kB / 0.7778 GB, free: 7.688 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002213/0.3651, allocations: 247.3 kB / 0.778 GB, free: 7.445 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002858/0.3654, allocations: 350.2 kB / 0.7783 GB, free: 7.102 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0008842/0.3663, allocations: 0.9779 MB / 0.7793 GB, free: 6.125 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3663, allocations: 0 / 0.7793 GB, free: 6.125 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3663, allocations: 0 / 0.7793 GB, free: 6.125 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.068e-05/0.3663, allocations: 0 / 0.7793 GB, free: 6.125 MB / 0.545 GB 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.001347/0.3677, allocations: 0.9884 MB / 0.7803 GB, free: 5.086 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.3677, allocations: 8.031 kB / 0.7803 GB, free: 5.078 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.553e-05/0.3678, allocations: 106.7 kB / 0.7804 GB, free: 4.965 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001293/0.3691, allocations: 196.3 kB / 0.7806 GB, free: 4.773 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007042/0.3698, allocations: 0.5222 MB / 0.7811 GB, free: 4.215 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.035e-05/0.3699, allocations: 41.36 kB / 0.7811 GB, free: 4.172 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001378/0.37, allocations: 56.53 kB / 0.7812 GB, free: 4.117 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009833/0.371, allocations: 0.82 MB / 0.782 GB, free: 3.219 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/0.3711, allocations: 15.83 kB / 0.782 GB, free: 3.203 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.303e-05/0.3711, allocations: 27.97 kB / 0.782 GB, free: 3.176 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001767/0.3713, allocations: 68.95 kB / 0.7821 GB, free: 3.109 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007764/0.3721, allocations: 0.5735 MB / 0.7826 GB, free: 2.531 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003657/0.3757, allocations: 4.562 MB / 0.7871 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004159/0.3762, allocations: 307.2 kB / 0.7874 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002818/0.3765, allocations: 221.3 kB / 0.7876 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.3765, allocations: 4.281 kB / 0.7876 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.3765, allocations: 34.84 kB / 0.7876 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=33): time 1.443e-06/0.3765, allocations: 0 / 0.7876 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of matching and sorting (n=40): time 0.00501/0.3815, allocations: 2.637 MB / 0.7902 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.883e-05/0.3816, allocations: 59.41 kB / 0.7903 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004249/0.382, allocations: 462 kB / 0.7907 GB, free: 9.746 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.562e-05/0.3821, allocations: 29.7 kB / 0.7907 GB, free: 9.711 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001972/0.3823, allocations: 352.5 kB / 0.7911 GB, free: 9.363 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.3824, allocations: 150.7 kB / 0.7912 GB, free: 9.215 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.3825, allocations: 106.2 kB / 0.7913 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.3827, allocations: 366.7 kB / 0.7917 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003219/0.383, allocations: 241 kB / 0.7919 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004032/0.3834, allocations: 406.5 kB / 0.7923 GB, free: 8.031 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007608/0.3842, allocations: 0.6778 MB / 0.7929 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3842, allocations: 0 / 0.7929 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001491/0.3857, allocations: 0.9102 MB / 0.7938 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.3857, allocations: 12.03 kB / 0.7938 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.3857, allocations: 4 kB / 0.7938 GB, free: 6.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007231/0.3864, allocations: 230.3 kB / 0.7941 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004695/0.3869, allocations: 119.7 kB / 0.7942 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004491/0.3914, allocations: 5.34 MB / 0.7994 GB, free: 228 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003763/0.3918, allocations: 35.91 kB / 0.7994 GB, free: 192 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.736e-05/0.3919, allocations: 24 kB / 0.7995 GB, free: 168 kB / 0.5606 GB 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.0002304/0.3921, allocations: 218.4 kB / 0.7997 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.564e-05/0.3922, allocations: 71.62 kB / 0.7997 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001345/0.3935, allocations: 0.7701 MB / 0.8005 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.3936, allocations: 8 kB / 0.8005 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.3936, allocations: 0 / 0.8005 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.3936, allocations: 3.984 kB / 0.8005 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002168/0.3958, allocations: 1.498 MB / 0.802 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.3958, allocations: 0 / 0.802 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003534/0.3961, allocations: 67.89 kB / 0.802 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006358/0.3968, allocations: 210.5 kB / 0.8022 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/0.3968, allocations: 8 kB / 0.8022 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004239/0.4011, allocations: 5.285 MB / 0.8074 GB, free: 7.492 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.4011, allocations: 12.03 kB / 0.8074 GB, free: 7.48 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001544/0.4026, allocations: 1.12 MB / 0.8085 GB, free: 6.312 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002222/0.4029, allocations: 180.6 kB / 0.8087 GB, free: 6.117 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.102e-05/0.4029, allocations: 15.94 kB / 0.8087 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003129/0.4033, allocations: 28.03 kB / 0.8087 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.714e-05/0.4033, allocations: 35.89 kB / 0.8087 GB, free: 6.039 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.397e-05/0.4034, allocations: 12 kB / 0.8088 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000281/0.4036, allocations: 314.9 kB / 0.8091 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4037, allocations: 0 / 0.8091 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0005496/0.4042, allocations: 168 kB / 0.8092 GB, free: 5.559 MB / 0.5762 GB 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.001821/0.406, allocations: 1.708 MB / 0.8109 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001412/0.4075, allocations: 1.004 MB / 0.8119 GB, free: 2.746 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.4075, allocations: 4 kB / 0.8119 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008731/0.4084, allocations: 0.6759 MB / 0.8125 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008094/0.4092, allocations: 184.8 kB / 0.8127 GB, free: 1.859 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0068/0.416, allocations: 5.623 MB / 0.8182 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004804/0.4165, allocations: 0.9494 MB / 0.8191 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002923/0.4168, allocations: 109 kB / 0.8192 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002364/0.417, allocations: 215.4 kB / 0.8194 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of SimCode: time 2.71e-07/0.417, allocations: 0 / 0.8194 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03728/0.4543, allocations: 14.13 MB / 0.8332 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.663/10.12, allocations: 5.703 kB / 0.8332 GB, free: 12.84 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)