Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.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.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",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.007845/0.007845, allocations: 97.39 kB / 15.73 MB, free: 6.039 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.001555/0.001555, allocations: 202.2 kB / 16.68 MB, free: 5.961 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002514/0.002514, allocations: 290.7 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.052/1.052, allocations: 178.6 MB / 0.5074 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002634/0.002634, allocations: 105.9 kB / 0.6943 GB, free: 3.605 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4364/0.4391, allocations: 89.14 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.008269/0.4474, allocations: 6.152 MB / 0.7873 GB, free: 9.68 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005144/0.4526, allocations: 3.166 MB / 0.7904 GB, free: 7.543 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004104/0.453, allocations: 37.62 kB / 0.7905 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002535/0.4555, allocations: 0.9268 MB / 0.7914 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00121/0.4568, allocations: 472.2 kB / 0.7918 GB, free: 6.691 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001278/0.4581, allocations: 0.4975 MB / 0.7923 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001278/0.4594, allocations: 1.098 MB / 0.7934 GB, free: 5.953 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008755/0.4603, allocations: 0.6433 MB / 0.794 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005665/0.4608, allocations: 436.8 kB / 0.7944 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006039/0.4615, allocations: 474.6 kB / 0.7949 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.871e-05/0.4616, allocations: 61.66 kB / 0.7949 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008868/0.4625, allocations: 486.5 kB / 0.7954 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002949/0.4628, allocations: 287.4 kB / 0.7957 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004118/0.4632, allocations: 400.5 kB / 0.7961 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001425/0.4646, allocations: 1.188 MB / 0.7972 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.4646, allocations: 0 / 0.7972 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.173e-06/0.4646, allocations: 3.938 kB / 0.7972 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.149e-05/0.4646, allocations: 1.25 kB / 0.7972 GB, free: 4.039 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001674/0.4663, allocations: 1.084 MB / 0.7983 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.4664, allocations: 9.781 kB / 0.7983 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001422/0.4665, allocations: 116.6 kB / 0.7984 GB, free: 3.062 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001519/0.468, allocations: 226 kB / 0.7986 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009854/0.469, allocations: 0.6039 MB / 0.7992 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.532e-05/0.4691, allocations: 46.58 kB / 0.7993 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.4692, allocations: 65.08 kB / 0.7993 GB, free: 2.426 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.4707, allocations: 1.03 MB / 0.8003 GB, free: 1.66 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.202e-05/0.4708, allocations: 11.27 kB / 0.8003 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-05/0.4708, allocations: 28.48 kB / 0.8004 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.301e-05/0.4709, allocations: 75.11 kB / 0.8004 GB, free: 1.609 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.472, allocations: 0.6909 MB / 0.8011 GB, free: 1.266 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005213/0.4772, allocations: 5.732 MB / 0.8067 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008304/0.4781, allocations: 0.5963 MB / 0.8073 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007982/0.4789, allocations: 431.8 kB / 0.8077 GB, free: 11.24 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.563e-05/0.4789, allocations: 12.88 kB / 0.8077 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.4789, allocations: 32.09 kB / 0.8077 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=41): time 2.094e-06/0.479, allocations: 0 / 0.8077 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42): time 0.004396/0.4834, allocations: 2.033 MB / 0.8097 GB, free: 9.863 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.4834, allocations: 55 kB / 0.8098 GB, free: 9.801 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004929/0.4839, allocations: 467.2 kB / 0.8102 GB, free: 9.52 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/0.484, allocations: 35.08 kB / 0.8103 GB, free: 9.48 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002611/0.4842, allocations: 394.7 kB / 0.8106 GB, free: 9.129 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.4844, allocations: 153.9 kB / 0.8108 GB, free: 8.996 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.4845, allocations: 113 kB / 0.8109 GB, free: 8.926 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001666/0.4847, allocations: 367.1 kB / 0.8112 GB, free: 8.57 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003427/0.4851, allocations: 239 kB / 0.8115 GB, free: 8.457 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004987/0.4856, allocations: 458.8 kB / 0.8119 GB, free: 8.055 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009119/0.4865, allocations: 0.7467 MB / 0.8126 GB, free: 7.492 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.4865, allocations: 1.375 kB / 0.8126 GB, free: 7.492 MB / 0.5762 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001806/0.4883, allocations: 1.039 MB / 0.8137 GB, free: 6.918 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.4883, allocations: 7.875 kB / 0.8137 GB, free: 6.918 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.4884, allocations: 10.62 kB / 0.8137 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.4894, allocations: 328.1 kB / 0.814 GB, free: 6.738 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000309/0.4897, allocations: 100.2 kB / 0.8141 GB, free: 6.711 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007591/0.4973, allocations: 7.471 MB / 0.8214 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004558/0.4978, allocations: 30.61 kB / 0.8214 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.399e-05/0.4978, allocations: 29.78 kB / 0.8214 GB, free: 15.84 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003516/0.4982, allocations: 248.3 kB / 0.8217 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.568e-05/0.4983, allocations: 64.31 kB / 0.8217 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001691/0.5, allocations: 0.8951 MB / 0.8226 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.5, allocations: 4 kB / 0.8226 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.5, allocations: 3.719 kB / 0.8226 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.5, allocations: 9.234 kB / 0.8226 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002599/0.5026, allocations: 1.681 MB / 0.8243 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.5026, allocations: 1.344 kB / 0.8243 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.5028, allocations: 38.44 kB / 0.8243 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009086/0.5037, allocations: 319.2 kB / 0.8246 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.098e-05/0.5038, allocations: 12.03 kB / 0.8246 GB, free: 13.72 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007397/0.5112, allocations: 7.456 MB / 0.8319 GB, free: 6.891 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.5112, allocations: 5.875 kB / 0.8319 GB, free: 6.887 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/0.5129, allocations: 1.005 MB / 0.8329 GB, free: 6.227 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002473/0.5132, allocations: 176.5 kB / 0.8331 GB, free: 6.07 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.816e-05/0.5133, allocations: 8.125 kB / 0.8331 GB, free: 6.066 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000269/0.5135, allocations: 25.48 kB / 0.8331 GB, free: 6.051 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.5136, allocations: 38.2 kB / 0.8331 GB, free: 6.031 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.831e-05/0.5137, allocations: 13.47 kB / 0.8331 GB, free: 6.027 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003412/0.514, allocations: 312.5 kB / 0.8334 GB, free: 5.84 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.41e-07/0.514, allocations: 4 kB / 0.8334 GB, free: 5.836 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007648/0.5148, allocations: 193.1 kB / 0.8336 GB, free: 5.816 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001946/0.5168, allocations: 1.547 MB / 0.8351 GB, free: 4.625 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001831/0.5186, allocations: 1.197 MB / 0.8363 GB, free: 3.785 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.5186, allocations: 5.156 kB / 0.8363 GB, free: 3.781 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001226/0.5199, allocations: 0.8674 MB / 0.8372 GB, free: 3.086 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009943/0.5209, allocations: 205.6 kB / 0.8373 GB, free: 2.988 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008173/0.529, allocations: 5.899 MB / 0.8431 GB, free: 13.17 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006752/0.5297, allocations: 0.9921 MB / 0.8441 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0002934/0.53, allocations: 97.19 kB / 0.8442 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002833/0.5303, allocations: 227.4 kB / 0.8444 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of SimCode: time 5.71e-07/0.5303, allocations: 0 / 0.8444 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05166/0.582, allocations: 15.41 MB / 0.8594 GB, free: 12.73 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.8, allocations: 7.875 kB / 0.8594 GB, free: 12.73 MB / 0.6231 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_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_ThreePhasesBalanced_Lines_Examples_ACLine_L.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1)