Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.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.OnePhase.Lines.Examples.ACLine,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_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.007439/0.007439, allocations: 100.1 kB / 15.73 MB, free: 6.043 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.001605/0.001605, allocations: 189.3 kB / 16.67 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002775/0.002775, allocations: 274.6 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9991/0.9991, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 88.19 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1684/0.1705, allocations: 86.98 MB / 0.7659 GB, free: 8.898 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.3714/0.5419, allocations: 10.89 MB / 0.7765 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0136/0.5555, allocations: 8.799 MB / 0.7851 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001759/0.5573, allocations: 58.94 kB / 0.7852 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.004105/0.5615, allocations: 1.67 MB / 0.7868 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005264/0.5668, allocations: 1.557 MB / 0.7883 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00215/0.5689, allocations: 0.6804 MB / 0.789 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.003491/0.5724, allocations: 2.286 MB / 0.7912 GB, free: 1.59 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001966/0.5744, allocations: 1.383 MB / 0.7926 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002094/0.5766, allocations: 1.006 MB / 0.7936 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002142/0.5787, allocations: 1.012 MB / 0.7946 GB, free: 120 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0004591/0.5792, allocations: 143 kB / 0.7947 GB, free: 116 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002111/0.5813, allocations: 0.7968 MB / 0.7955 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0008548/0.5822, allocations: 0.5681 MB / 0.796 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001907/0.5841, allocations: 0.8843 MB / 0.7969 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005443/0.5896, allocations: 2.573 MB / 0.7994 GB, free: 14.17 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.5896, allocations: 4.5 kB / 0.7994 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.954e-06/0.5897, allocations: 0 / 0.7994 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.523e-05/0.5898, allocations: 1.062 kB / 0.7994 GB, free: 14.16 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.004769/0.5945, allocations: 2.015 MB / 0.8014 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.5946, allocations: 9.75 kB / 0.8014 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003959/0.595, allocations: 194.8 kB / 0.8016 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01215/0.6072, allocations: 2.048 MB / 0.8036 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003964/0.6112, allocations: 1.213 MB / 0.8048 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.6113, allocations: 84.59 kB / 0.8048 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005405/0.6119, allocations: 125 kB / 0.805 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006614/0.6185, allocations: 2.479 MB / 0.8074 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.645e-05/0.6186, allocations: 11.45 kB / 0.8074 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002665/0.6188, allocations: 54.7 kB / 0.8074 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003505/0.6192, allocations: 129.4 kB / 0.8076 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007329/0.6265, allocations: 2.542 MB / 0.81 GB, free: 9.926 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01592/0.6425, allocations: 10.04 MB / 0.8198 GB, free: 1.215 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005896/0.6484, allocations: 1.95 MB / 0.8217 GB, free: 180 kB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002621/0.6511, allocations: 0.9761 MB / 0.8227 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 6.039e-05/0.6512, allocations: 10.06 kB / 0.8227 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/0.6512, allocations: 41.64 kB / 0.8227 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=53): time 2.385e-06/0.6512, allocations: 0 / 0.8227 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of matching and sorting (n=81): time 0.03075/0.682, allocations: 8.709 MB / 0.8313 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.277e-05/0.6821, allocations: 63.41 kB / 0.8313 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002147/0.6842, allocations: 1.104 MB / 0.8324 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001876/0.6844, allocations: 40.83 kB / 0.8324 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005587/0.685, allocations: 0.7376 MB / 0.8332 GB, free: 9.949 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003527/0.6854, allocations: 286.9 kB / 0.8334 GB, free: 9.699 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004861/0.6858, allocations: 199.8 kB / 0.8336 GB, free: 9.582 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.686, allocations: 343.6 kB / 0.8339 GB, free: 9.25 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002777/0.6888, allocations: 1.078 MB / 0.835 GB, free: 8.699 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002945/0.6917, allocations: 1.301 MB / 0.8363 GB, free: 7.867 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005696/0.6974, allocations: 2.381 MB / 0.8386 GB, free: 6.461 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.6975, allocations: 2.625 kB / 0.8386 GB, free: 6.461 MB / 0.5919 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.009039/0.7065, allocations: 3.273 MB / 0.8418 GB, free: 4.301 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.629e-05/0.7066, allocations: 11.98 kB / 0.8418 GB, free: 4.289 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.48e-05/0.7067, allocations: 8 kB / 0.8418 GB, free: 4.281 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003156/0.7098, allocations: 0.7864 MB / 0.8426 GB, free: 3.473 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001887/0.7117, allocations: 427.2 kB / 0.843 GB, free: 3.055 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01635/0.7281, allocations: 15.91 MB / 0.8585 GB, free: 2.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002361/0.7305, allocations: 287.5 kB / 0.8588 GB, free: 1.738 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002473/0.7308, allocations: 55.95 kB / 0.8588 GB, free: 1.684 MB / 0.6075 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,2,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (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.000971/0.7318, allocations: 397.5 kB / 0.8592 GB, free: 1.285 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004362/0.7322, allocations: 146.2 kB / 0.8594 GB, free: 1.141 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008536/0.7408, allocations: 3.206 MB / 0.8625 GB, free: 13.9 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.7408, allocations: 11.94 kB / 0.8625 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-05/0.7408, allocations: 4 kB / 0.8625 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.7408, allocations: 7.984 kB / 0.8625 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01135/0.7522, allocations: 4.902 MB / 0.8673 GB, free: 8.844 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.945e-05/0.7523, allocations: 7.938 kB / 0.8673 GB, free: 8.836 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001565/0.7538, allocations: 347.4 kB / 0.8676 GB, free: 8.496 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002579/0.7564, allocations: 0.6977 MB / 0.8683 GB, free: 7.773 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000127/0.7566, allocations: 32.06 kB / 0.8684 GB, free: 7.742 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01557/0.7721, allocations: 15.53 MB / 0.8835 GB, free: 7.094 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/0.7722, allocations: 8.016 kB / 0.8835 GB, free: 7.086 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007991/0.7802, allocations: 3.047 MB / 0.8865 GB, free: 3.957 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/0.7813, allocations: 383.2 kB / 0.8869 GB, free: 3.562 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004451/0.7817, allocations: 19.94 kB / 0.8869 GB, free: 3.543 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002059/0.7838, allocations: 291.4 kB / 0.8872 GB, free: 3.258 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003443/0.7842, allocations: 88.47 kB / 0.8873 GB, free: 3.172 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/0.7843, allocations: 39.97 kB / 0.8873 GB, free: 3.133 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001192/0.7855, allocations: 0.7366 MB / 0.888 GB, free: 2.395 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7855, allocations: 0 / 0.888 GB, free: 2.395 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.00192/0.7875, allocations: 432 kB / 0.8884 GB, free: 1.973 MB / 0.6387 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,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.008092/0.7956, allocations: 3.622 MB / 0.892 GB, free: 14.26 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.008159/0.8038, allocations: 3.625 MB / 0.8955 GB, free: 10.54 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/0.8038, allocations: 0 / 0.8955 GB, free: 10.54 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.004859/0.8087, allocations: 2.371 MB / 0.8978 GB, free: 8.062 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003106/0.8118, allocations: 0.5256 MB / 0.8983 GB, free: 7.566 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03538/0.8472, allocations: 15.81 MB / 0.9138 GB, free: 7.328 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001489/0.8488, allocations: 1.388 MB / 0.9151 GB, free: 5.906 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001528/0.8503, allocations: 379.9 kB / 0.9155 GB, free: 5.531 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009849/0.8513, allocations: 0.5969 MB / 0.9161 GB, free: 4.934 MB / 0.67 GB Notification: Performance of SimCode: time 1.012e-06/0.8513, allocations: 0 / 0.9161 GB, free: 4.934 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08786/0.9392, allocations: 41.56 MB / 0.9567 GB, free: 12 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/14.84, allocations: 5.719 kB / 0.9567 GB, free: 11.99 MB / 0.7169 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1)