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.0009446/0.0009446, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.006266/0.006267, allocations: 171.5 kB / 16.26 MB, free: 6.613 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.303/1.303, allocations: 223.2 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001727/0.001727, allocations: 266.2 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.915/0.915, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003928/0.0003928, allocations: 13.59 kB / 0.5988 GB, free: 27.82 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1562, allocations: 88.55 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01222/0.1685, allocations: 10.34 MB / 0.6953 GB, free: 4.59 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01315/0.1817, allocations: 8.685 MB / 0.7038 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001461/0.1832, allocations: 51.62 kB / 0.7039 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0009208/0.1841, allocations: 281.8 kB / 0.7041 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004639/0.1888, allocations: 1.388 MB / 0.7055 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001778/0.1906, allocations: 0.62 MB / 0.7061 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003934/0.1945, allocations: 2.905 MB / 0.7089 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003561/0.1981, allocations: 1.942 MB / 0.7108 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001708/0.1998, allocations: 0.8206 MB / 0.7116 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001386/0.2012, allocations: 0.9452 MB / 0.7126 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001374/0.2014, allocations: 60 kB / 0.7126 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001597/0.203, allocations: 0.8811 MB / 0.7135 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004647/0.2035, allocations: 490.3 kB / 0.714 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007879/0.2043, allocations: 0.8019 MB / 0.7147 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002668/0.2069, allocations: 2.499 MB / 0.7172 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2069, allocations: 0 / 0.7172 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.864e-06/0.207, allocations: 0 / 0.7172 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.643e-05/0.207, allocations: 0 / 0.7172 GB, free: 14.14 MB / 0.5137 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.002857/0.2099, allocations: 1.714 MB / 0.7188 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.2099, allocations: 8.031 kB / 0.7189 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002522/0.2102, allocations: 186.1 kB / 0.719 GB, free: 12.17 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0114/0.2216, allocations: 2.116 MB / 0.7211 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002366/0.224, allocations: 1.115 MB / 0.7222 GB, free: 8.879 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.969e-05/0.2241, allocations: 94.69 kB / 0.7223 GB, free: 8.785 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002494/0.2243, allocations: 123.8 kB / 0.7224 GB, free: 8.664 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005703/0.2301, allocations: 2.506 MB / 0.7248 GB, free: 6.008 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.2e-05/0.2301, allocations: 7.938 kB / 0.7249 GB, free: 6 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001583/0.2303, allocations: 55.98 kB / 0.7249 GB, free: 5.945 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003812/0.2307, allocations: 130.1 kB / 0.725 GB, free: 5.816 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00746/0.2381, allocations: 2.588 MB / 0.7276 GB, free: 3.219 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01351/0.2517, allocations: 10.12 MB / 0.7374 GB, free: 8.445 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006395/0.2581, allocations: 2.003 MB / 0.7394 GB, free: 6.414 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002846/0.261, allocations: 0.9954 MB / 0.7404 GB, free: 5.418 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 4.093e-05/0.2611, allocations: 4.438 kB / 0.7404 GB, free: 5.414 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.237e-05/0.2611, allocations: 42.98 kB / 0.7404 GB, free: 5.359 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=53): time 2.164e-06/0.2611, allocations: 0 / 0.7404 GB, free: 5.359 MB / 0.5294 GB Notification: Performance of matching and sorting (n=81): time 0.0313/0.2924, allocations: 8.789 MB / 0.749 GB, free: 12.51 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.2925, allocations: 64 kB / 0.7491 GB, free: 12.44 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001493/0.294, allocations: 1.093 MB / 0.7501 GB, free: 11.33 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001533/0.2942, allocations: 37.7 kB / 0.7502 GB, free: 11.29 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005337/0.2947, allocations: 0.734 MB / 0.7509 GB, free: 10.54 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002824/0.295, allocations: 284 kB / 0.7511 GB, free: 10.26 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001634/0.2952, allocations: 77.67 kB / 0.7512 GB, free: 10.18 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.2953, allocations: 349.9 kB / 0.7516 GB, free: 9.832 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003109/0.2984, allocations: 1.091 MB / 0.7526 GB, free: 8.742 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00312/0.3016, allocations: 1.329 MB / 0.7539 GB, free: 7.32 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00617/0.3078, allocations: 2.421 MB / 0.7563 GB, free: 4.801 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.3078, allocations: 4 kB / 0.7563 GB, free: 4.797 MB / 0.545 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008795/0.3166, allocations: 3.315 MB / 0.7595 GB, free: 1.449 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.3167, allocations: 8 kB / 0.7595 GB, free: 1.441 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.3167, allocations: 8 kB / 0.7595 GB, free: 1.434 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002658/0.3193, allocations: 0.7915 MB / 0.7603 GB, free: 0.6172 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001934/0.3213, allocations: 423.3 kB / 0.7607 GB, free: 208 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01482/0.3361, allocations: 14.7 MB / 0.7751 GB, free: 436 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002552/0.3387, allocations: 307.5 kB / 0.7754 GB, free: 128 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.3389, allocations: 55.91 kB / 0.7754 GB, free: 72 kB / 0.5606 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.2891/0.6279, allocations: 396.1 kB / 0.7758 GB, free: 86.89 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003656/0.6283, allocations: 143.3 kB / 0.7759 GB, free: 86.89 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009372/0.6377, allocations: 3.24 MB / 0.7791 GB, free: 86.77 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/0.6378, allocations: 10.22 kB / 0.7791 GB, free: 86.77 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/0.6378, allocations: 9.594 kB / 0.7791 GB, free: 86.77 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.6378, allocations: 6.781 kB / 0.7791 GB, free: 86.77 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01088/0.6487, allocations: 4.949 MB / 0.784 GB, free: 86.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.6487, allocations: 2.625 kB / 0.784 GB, free: 86.09 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001659/0.6504, allocations: 359.7 kB / 0.7843 GB, free: 86.08 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002194/0.6526, allocations: 0.6968 MB / 0.785 GB, free: 85.87 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001027/0.6527, allocations: 31.75 kB / 0.785 GB, free: 85.86 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01178/0.6645, allocations: 14.34 MB / 0.799 GB, free: 73.86 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.6645, allocations: 7.781 kB / 0.799 GB, free: 73.86 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007439/0.672, allocations: 3.083 MB / 0.802 GB, free: 72.87 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006723/0.6727, allocations: 377.5 kB / 0.8024 GB, free: 72.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002941/0.673, allocations: 20.69 kB / 0.8024 GB, free: 72.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001941/0.6749, allocations: 305.2 kB / 0.8027 GB, free: 72.64 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002689/0.6752, allocations: 83.09 kB / 0.8028 GB, free: 72.62 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.752e-05/0.6753, allocations: 42.45 kB / 0.8028 GB, free: 72.61 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001048/0.6764, allocations: 0.7409 MB / 0.8035 GB, free: 72.31 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.81e-07/0.6764, allocations: 0 / 0.8035 GB, free: 72.31 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001525/0.6779, allocations: 432.9 kB / 0.804 GB, free: 72.27 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 (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.008273/0.6862, allocations: 3.664 MB / 0.8075 GB, free: 70.65 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007857/0.694, allocations: 3.657 MB / 0.8111 GB, free: 68.44 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.6941, allocations: 1.406 kB / 0.8111 GB, free: 68.44 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004713/0.6988, allocations: 2.397 MB / 0.8134 GB, free: 66.73 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002979/0.7018, allocations: 489.8 kB / 0.8139 GB, free: 66.51 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03162/0.7334, allocations: 17.27 MB / 0.8308 GB, free: 54.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007973/0.7343, allocations: 1.392 MB / 0.8321 GB, free: 53.48 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001457/0.7357, allocations: 377.8 kB / 0.8325 GB, free: 53.12 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006588/0.7364, allocations: 0.6008 MB / 0.8331 GB, free: 52.52 MB / 0.5606 GB Notification: Performance of SimCode: time 6.81e-07/0.7364, allocations: 0 / 0.8331 GB, free: 52.52 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04754/0.784, allocations: 39.58 MB / 0.8717 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001253/0.7841, allocations: 234.7 kB / 0.872 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.454/3.238, allocations: 0 / 0.872 GB, free: 13.3 MB / 0.5606 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)