Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",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.001347/0.001347, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.422/1.422, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002504/0.002504, allocations: 286.4 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9965/0.9965, allocations: 178.5 MB / 0.5073 GB, free: 4.605 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00261/0.002611, allocations: 102.5 kB / 0.6066 GB, free: 24.78 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1504, allocations: 89.14 MB / 0.6936 GB, free: 4.262 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01739/0.1678, allocations: 14.04 MB / 0.7073 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01625/0.1841, allocations: 9.394 MB / 0.7165 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001188/0.1853, allocations: 59.62 kB / 0.7165 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.004542/0.1899, allocations: 1.659 MB / 0.7182 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.004242/0.1942, allocations: 1.552 MB / 0.7197 GB, free: 9.492 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001789/0.196, allocations: 0.7632 MB / 0.7204 GB, free: 8.73 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002884/0.1988, allocations: 2.512 MB / 0.7229 GB, free: 6.207 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001678/0.2005, allocations: 1.407 MB / 0.7243 GB, free: 4.773 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001135/0.2017, allocations: 1.043 MB / 0.7253 GB, free: 3.727 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001318/0.203, allocations: 1.14 MB / 0.7264 GB, free: 2.582 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002261/0.2032, allocations: 167.9 kB / 0.7265 GB, free: 2.418 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001316/0.2046, allocations: 0.7916 MB / 0.7273 GB, free: 1.625 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0005516/0.2051, allocations: 0.6154 MB / 0.7279 GB, free: 1.008 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0008728/0.206, allocations: 0.9406 MB / 0.7288 GB, free: 64 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002822/0.2088, allocations: 2.737 MB / 0.7315 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2089, allocations: 4 kB / 0.7315 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.332e-06/0.2089, allocations: 0 / 0.7315 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.6e-05/0.2089, allocations: 0 / 0.7315 GB, free: 13.31 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.003902/0.2128, allocations: 2.135 MB / 0.7336 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.2129, allocations: 8.031 kB / 0.7336 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000234/0.2131, allocations: 194.3 kB / 0.7338 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01161/0.2247, allocations: 2.093 MB / 0.7358 GB, free: 8.816 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002712/0.2275, allocations: 1.197 MB / 0.737 GB, free: 7.562 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.36e-05/0.2275, allocations: 90.67 kB / 0.7371 GB, free: 7.473 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002507/0.2278, allocations: 119.9 kB / 0.7372 GB, free: 7.355 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005929/0.2337, allocations: 2.674 MB / 0.7398 GB, free: 4.531 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.314e-05/0.2338, allocations: 11.94 kB / 0.7398 GB, free: 4.52 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001775/0.234, allocations: 51.98 kB / 0.7399 GB, free: 4.469 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006935/0.2347, allocations: 182.1 kB / 0.7401 GB, free: 4.289 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008389/0.2431, allocations: 2.799 MB / 0.7428 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01682/0.26, allocations: 10.51 MB / 0.753 GB, free: 6.387 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007308/0.2673, allocations: 2.542 MB / 0.7555 GB, free: 3.781 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003496/0.2708, allocations: 1.285 MB / 0.7568 GB, free: 2.492 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001049/0.271, allocations: 9 kB / 0.7568 GB, free: 2.484 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.433e-05/0.2711, allocations: 51.5 kB / 0.7568 GB, free: 2.426 MB / 0.545 GB Notification: Performance of pre-optimization done (n=89): time 4.869e-06/0.2711, allocations: 0 / 0.7568 GB, free: 2.426 MB / 0.545 GB Notification: Performance of matching and sorting (n=131): time 0.3822/0.6533, allocations: 13.33 MB / 0.7699 GB, free: 63.16 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.504e-05/0.6533, allocations: 67.88 kB / 0.7699 GB, free: 63.09 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00145/0.6548, allocations: 1.119 MB / 0.771 GB, free: 62.64 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000171/0.655, allocations: 48.42 kB / 0.7711 GB, free: 62.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003984/0.6554, allocations: 0.7182 MB / 0.7718 GB, free: 62.03 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003927/0.6558, allocations: 456.1 kB / 0.7722 GB, free: 61.68 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004975/0.6563, allocations: 255.5 kB / 0.7724 GB, free: 61.58 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.338e-05/0.6564, allocations: 356.1 kB / 0.7728 GB, free: 61.25 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003359/0.6598, allocations: 1.346 MB / 0.7741 GB, free: 60.87 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003428/0.6632, allocations: 1.599 MB / 0.7757 GB, free: 60.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006977/0.6702, allocations: 2.994 MB / 0.7786 GB, free: 59.02 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.6702, allocations: 2.312 kB / 0.7786 GB, free: 59.02 MB / 0.545 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01121/0.6815, allocations: 4.438 MB / 0.7829 GB, free: 57.36 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.902e-05/0.6815, allocations: 9.375 kB / 0.7829 GB, free: 57.36 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.6815, allocations: 7.125 kB / 0.7829 GB, free: 57.36 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005032/0.6866, allocations: 1.444 MB / 0.7843 GB, free: 56.57 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002071/0.6887, allocations: 437 kB / 0.7848 GB, free: 56.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0214/0.7101, allocations: 26.71 MB / 0.8108 GB, free: 32.46 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002726/0.7128, allocations: 307.3 kB / 0.8111 GB, free: 32.31 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001612/0.713, allocations: 61.94 kB / 0.8112 GB, free: 32.29 MB / 0.545 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009086/0.7139, allocations: 434.7 kB / 0.8116 GB, free: 31.98 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003894/0.7143, allocations: 159.4 kB / 0.8118 GB, free: 31.91 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01034/0.7247, allocations: 4.461 MB / 0.8161 GB, free: 29.29 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.7247, allocations: 11.44 kB / 0.8161 GB, free: 29.29 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.612e-05/0.7247, allocations: 15.56 kB / 0.8161 GB, free: 29.29 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.7248, allocations: 3.984 kB / 0.8162 GB, free: 29.29 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01273/0.7375, allocations: 6.77 MB / 0.8228 GB, free: 24.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.7375, allocations: 4 kB / 0.8228 GB, free: 24.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001618/0.7391, allocations: 379.3 kB / 0.8231 GB, free: 24.03 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004076/0.7432, allocations: 1.315 MB / 0.8244 GB, free: 22.67 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/0.7434, allocations: 39.97 kB / 0.8245 GB, free: 22.63 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01975/0.7631, allocations: 25.5 MB / 0.8494 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.515e-06/0.7632, allocations: 7.938 kB / 0.8494 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01199/0.7752, allocations: 4.204 MB / 0.8535 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/0.7763, allocations: 459 kB / 0.8539 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002582/0.7765, allocations: 24.19 kB / 0.8539 GB, free: 6.539 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002126/0.7787, allocations: 311.5 kB / 0.8542 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000458/0.7791, allocations: 128.7 kB / 0.8543 GB, free: 6.109 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/0.7793, allocations: 47.97 kB / 0.8544 GB, free: 6.062 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001161/0.7804, allocations: 0.7565 MB / 0.8551 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.9e-07/0.7804, allocations: 0 / 0.8551 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002128/0.7826, allocations: 0.5682 MB / 0.8557 GB, free: 4.738 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01143/0.794, allocations: 4.799 MB / 0.8604 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01247/0.8065, allocations: 5.513 MB / 0.8658 GB, free: 10.17 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/0.8066, allocations: 4 kB / 0.8658 GB, free: 10.17 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.007304/0.8139, allocations: 3.496 MB / 0.8692 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002848/0.8167, allocations: 0.5476 MB / 0.8697 GB, free: 6.004 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04646/0.8632, allocations: 20.34 MB / 0.8896 GB, free: 1.004 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/0.8646, allocations: 1.47 MB / 0.891 GB, free: 15.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001915/0.8666, allocations: 430.3 kB / 0.8914 GB, free: 15.09 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001004/0.8676, allocations: 0.6242 MB / 0.892 GB, free: 14.46 MB / 0.6075 GB Notification: Performance of SimCode: time 1.103e-06/0.8676, allocations: 0 / 0.892 GB, free: 14.46 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1345/1.002, allocations: 51.33 MB / 0.9421 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.9, allocations: 12.06 kB / 0.9422 GB, free: 11.83 MB / 0.6544 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1)