Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,fileNamePrefix="Buildings_9_Buildings_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.0007799/0.00078, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.0008424/0.0008424, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 223.2 MB / 240 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.438/2.438, allocations: 390.4 MB / 0.6655 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003132/0.0003133, allocations: 8 kB / 0.8149 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7254/0.7257, allocations: 142.3 MB / 0.9539 GB, free: 8.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.00951/0.7352, allocations: 9.795 MB / 0.9634 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01345/0.7487, allocations: 8.17 MB / 0.9714 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001852/0.7506, allocations: 52.56 kB / 0.9715 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001328/0.752, allocations: 266 kB / 0.9717 GB, free: 10.01 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.004728/0.7567, allocations: 1.265 MB / 0.9729 GB, free: 9.031 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001735/0.7585, allocations: 474.3 kB / 0.9734 GB, free: 8.676 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.00393/0.7624, allocations: 2.443 MB / 0.9758 GB, free: 7.227 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003878/0.7663, allocations: 1.771 MB / 0.9775 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002335/0.7687, allocations: 0.79 MB / 0.9783 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00259/0.7713, allocations: 0.9117 MB / 0.9792 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0004793/0.7718, allocations: 59.97 kB / 0.9792 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002203/0.774, allocations: 461.6 kB / 0.9797 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.001188/0.7752, allocations: 475.8 kB / 0.9801 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.001157/0.7763, allocations: 339.6 kB / 0.9805 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.003314/0.7797, allocations: 1.962 MB / 0.9824 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.7797, allocations: 0 / 0.9824 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.713e-06/0.7797, allocations: 0 / 0.9824 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.996e-05/0.7798, allocations: 4 kB / 0.9824 GB, free: 2.852 MB / 0.7325 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.00386/0.7836, allocations: 1.722 MB / 0.9841 GB, free: 1.074 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.7837, allocations: 12.03 kB / 0.9841 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000345/0.7841, allocations: 185.9 kB / 0.9842 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009785/0.7938, allocations: 2.112 MB / 0.9863 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002236/0.7961, allocations: 1.083 MB / 0.9874 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.272e-05/0.7962, allocations: 90.27 kB / 0.9874 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002129/0.7964, allocations: 115.9 kB / 0.9876 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005184/0.8016, allocations: 2.494 MB / 0.99 GB, free: 10.77 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.483e-05/0.8016, allocations: 4 kB / 0.99 GB, free: 10.76 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001406/0.8018, allocations: 51.98 kB / 0.99 GB, free: 10.71 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003644/0.8022, allocations: 134 kB / 0.9902 GB, free: 10.58 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006458/0.8086, allocations: 2.584 MB / 0.9927 GB, free: 7.984 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01391/0.8225, allocations: 10.11 MB / 1.003 GB, free: 13.21 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005353/0.8279, allocations: 1.996 MB / 1.005 GB, free: 11.19 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002629/0.8306, allocations: 1.001 MB / 1.005 GB, free: 10.19 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 5.441e-05/0.8307, allocations: 8.438 kB / 1.006 GB, free: 10.18 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/0.8307, allocations: 46.92 kB / 1.006 GB, free: 10.12 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=53): time 2.665e-06/0.8307, allocations: 0 / 1.006 GB, free: 10.12 MB / 0.7637 GB Notification: Performance of matching and sorting (n=81): time 0.02682/0.8576, allocations: 8.769 MB / 1.014 GB, free: 1.293 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.8576, allocations: 60.06 kB / 1.014 GB, free: 1.223 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001409/0.859, allocations: 1.093 MB / 1.015 GB, free: 116 kB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001046/0.8592, allocations: 41.7 kB / 1.015 GB, free: 68 kB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005997/0.8598, allocations: 0.7418 MB / 1.016 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002579/0.86, allocations: 279.9 kB / 1.016 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.72e-05/0.8601, allocations: 20 kB / 1.016 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.8603, allocations: 345.9 kB / 1.017 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002517/0.8628, allocations: 1.087 MB / 1.018 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002739/0.8655, allocations: 1.321 MB / 1.019 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002656/0.8682, allocations: 1.146 MB / 1.02 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.8682, allocations: 4 kB / 1.02 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008006/0.8762, allocations: 3.304 MB / 1.023 GB, free: 7.68 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.8763, allocations: 8.125 kB / 1.023 GB, free: 7.672 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.8763, allocations: 12 kB / 1.023 GB, free: 7.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002517/0.8788, allocations: 0.7871 MB / 1.024 GB, free: 6.848 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001767/0.8806, allocations: 419.3 kB / 1.025 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01712/0.8977, allocations: 14.69 MB / 1.039 GB, free: 6.68 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002286/0.9001, allocations: 307.6 kB / 1.039 GB, free: 6.379 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.9002, allocations: 51.97 kB / 1.039 GB, free: 6.328 MB / 0.795 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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 2,(2,100.0%) 2,(3,100.0%) 5,(3,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009618/0.9012, allocations: 398.3 kB / 1.04 GB, free: 5.93 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002333/0.9014, allocations: 146.3 kB / 1.04 GB, free: 5.785 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008007/0.9094, allocations: 3.234 MB / 1.043 GB, free: 2.512 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.621e-05/0.9095, allocations: 8 kB / 1.043 GB, free: 2.504 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-05/0.9095, allocations: 8 kB / 1.043 GB, free: 2.496 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/0.9095, allocations: 3.984 kB / 1.043 GB, free: 2.492 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01053/0.9201, allocations: 4.952 MB / 1.048 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/0.9201, allocations: 4 kB / 1.048 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/0.9215, allocations: 359.4 kB / 1.048 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002112/0.9236, allocations: 0.6974 MB / 1.049 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.437e-05/0.9237, allocations: 27.97 kB / 1.049 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01363/0.9374, allocations: 14.32 MB / 1.063 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.9374, allocations: 0 / 1.063 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007568/0.945, allocations: 3.081 MB / 1.066 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008777/0.9459, allocations: 387.2 kB / 1.066 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002074/0.9461, allocations: 19.98 kB / 1.066 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00157/0.9477, allocations: 303.5 kB / 1.066 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003044/0.948, allocations: 80.44 kB / 1.067 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.469e-05/0.9481, allocations: 47.91 kB / 1.067 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001156/0.9493, allocations: 0.7288 MB / 1.067 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.9493, allocations: 0 / 1.067 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001935/0.9512, allocations: 432 kB / 1.068 GB, free: 7.773 MB / 0.8262 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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(3,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007516/0.9588, allocations: 3.643 MB / 1.071 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.007929/0.9667, allocations: 3.656 MB / 1.075 GB, free: 284 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/0.9668, allocations: 0 / 1.075 GB, free: 284 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.004594/0.9714, allocations: 2.387 MB / 1.077 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002537/0.9739, allocations: 486.3 kB / 1.078 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02349/0.9975, allocations: 12 MB / 1.089 GB, free: 0.8516 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001099/0.9986, allocations: 1.384 MB / 1.091 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001677/1, allocations: 383.9 kB / 1.091 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008661/1.001, allocations: 0.5852 MB / 1.092 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of SimCode: time 5.81e-07/1.001, allocations: 0 / 1.092 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1024/1.104, allocations: 40.3 MB / 1.131 GB, free: 6.754 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/1.104, allocations: 209.3 kB / 1.131 GB, free: 6.516 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.552/3.656, allocations: 0 / 1.131 GB, free: 6.516 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat does not exist to compare? outputFormat=mat