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.001081/0.001081, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.001243/0.001243, allocations: 177.3 kB / 15.95 MB, free: 216 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.394/1.394, allocations: 223.2 MB / 239.9 MB, free: 5.457 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.535/2.535, allocations: 390.3 MB / 0.6653 GB, free: 3.047 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003229/0.0003233, allocations: 12 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7191/0.7195, allocations: 142.3 MB / 0.9536 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.009905/0.7294, allocations: 9.257 MB / 0.9626 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01437/0.7439, allocations: 8.031 MB / 0.9705 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001853/0.7458, allocations: 50.19 kB / 0.9705 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.7471, allocations: 258.6 kB / 0.9708 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.00529/0.7524, allocations: 1.257 MB / 0.972 GB, free: 9.551 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001878/0.7543, allocations: 471.9 kB / 0.9724 GB, free: 9.191 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003145/0.7575, allocations: 1.38 MB / 0.9738 GB, free: 8.324 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003426/0.7609, allocations: 1.786 MB / 0.9755 GB, free: 7.184 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001879/0.7628, allocations: 0.7186 MB / 0.9762 GB, free: 6.773 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001945/0.7648, allocations: 0.7345 MB / 0.977 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0003925/0.7652, allocations: 60.09 kB / 0.977 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001632/0.7668, allocations: 412.9 kB / 0.9774 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0006769/0.7675, allocations: 436.7 kB / 0.9778 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0007361/0.7682, allocations: 344.6 kB / 0.9782 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002926/0.7712, allocations: 1.906 MB / 0.98 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.7712, allocations: 1.031 kB / 0.98 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.272e-06/0.7712, allocations: 0 / 0.98 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.836e-05/0.7713, allocations: 0 / 0.98 GB, free: 4.367 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.004261/0.7756, allocations: 1.719 MB / 0.9817 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.7756, allocations: 9.562 kB / 0.9817 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004642/0.7761, allocations: 184.3 kB / 0.9819 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01128/0.7874, allocations: 2.126 MB / 0.984 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002933/0.7903, allocations: 1.072 MB / 0.985 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.7905, allocations: 94.27 kB / 0.9851 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004447/0.7909, allocations: 124 kB / 0.9852 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00659/0.7975, allocations: 2.478 MB / 0.9876 GB, free: 12.92 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.4e-05/0.7976, allocations: 11.84 kB / 0.9876 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002376/0.7979, allocations: 55.98 kB / 0.9877 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003647/0.7982, allocations: 130.1 kB / 0.9878 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007859/0.8061, allocations: 2.58 MB / 0.9903 GB, free: 10.13 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01574/0.8219, allocations: 10.12 MB / 1 GB, free: 15.36 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006209/0.8281, allocations: 2 MB / 1.002 GB, free: 13.33 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 4.098e-05/0.8282, allocations: 12.42 kB / 1.002 GB, free: 13.32 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.8282, allocations: 39 kB / 1.002 GB, free: 13.27 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=53): time 2.114e-06/0.8282, allocations: 0 / 1.002 GB, free: 13.27 MB / 0.7637 GB Notification: Performance of matching and sorting (n=81): time 0.03007/0.8583, allocations: 8.766 MB / 1.011 GB, free: 4.441 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.8584, allocations: 71.94 kB / 1.011 GB, free: 4.359 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00161/0.86, allocations: 1.081 MB / 1.012 GB, free: 3.262 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001379/0.8601, allocations: 41.7 kB / 1.012 GB, free: 3.215 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005875/0.8607, allocations: 0.7418 MB / 1.013 GB, free: 2.465 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002873/0.861, allocations: 276 kB / 1.013 GB, free: 2.191 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.669e-05/0.8611, allocations: 19.94 kB / 1.013 GB, free: 2.172 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.8613, allocations: 345.9 kB / 1.013 GB, free: 1.828 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002896/0.8642, allocations: 1.091 MB / 1.014 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003056/0.8673, allocations: 1.317 MB / 1.016 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002966/0.8702, allocations: 1.146 MB / 1.017 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.8703, allocations: 4 kB / 1.017 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008742/0.879, allocations: 3.304 MB / 1.02 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.8791, allocations: 8.938 kB / 1.02 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.8791, allocations: 8 kB / 1.02 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002747/0.8818, allocations: 0.7953 MB / 1.021 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001917/0.8838, allocations: 427.2 kB / 1.021 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01599/0.8998, allocations: 14.97 MB / 1.036 GB, free: 9.535 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002683/0.9025, allocations: 303.6 kB / 1.036 GB, free: 9.238 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002599/0.9028, allocations: 51.97 kB / 1.036 GB, free: 9.188 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.001087/0.9039, allocations: 394 kB / 1.037 GB, free: 8.793 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003761/0.9043, allocations: 146.3 kB / 1.037 GB, free: 8.648 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009098/0.9134, allocations: 3.234 MB / 1.04 GB, free: 5.375 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.9134, allocations: 8 kB / 1.04 GB, free: 5.367 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-05/0.9134, allocations: 12 kB / 1.04 GB, free: 5.355 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.9135, allocations: 7.984 kB / 1.04 GB, free: 5.348 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01171/0.9252, allocations: 4.947 MB / 1.045 GB, free: 280 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.9252, allocations: 4 kB / 1.045 GB, free: 276 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001702/0.9269, allocations: 367.7 kB / 1.045 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002404/0.9293, allocations: 0.6977 MB / 1.046 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001051/0.9295, allocations: 31.97 kB / 1.046 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01461/0.9441, allocations: 14.61 MB / 1.06 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.9441, allocations: 4 kB / 1.06 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008482/0.9526, allocations: 3.221 MB / 1.063 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009621/0.9536, allocations: 391.1 kB / 1.064 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002386/0.9538, allocations: 23.98 kB / 1.064 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001904/0.9557, allocations: 291.5 kB / 1.064 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002552/0.956, allocations: 88.44 kB / 1.064 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.537e-05/0.9561, allocations: 39.97 kB / 1.064 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001018/0.9571, allocations: 0.7249 MB / 1.065 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9571, allocations: 3.938 kB / 1.065 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001477/0.9586, allocations: 432 kB / 1.065 GB, free: 10.11 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.008651/0.9673, allocations: 4.535 MB / 1.07 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.008518/0.9758, allocations: 3.648 MB / 1.073 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/0.9759, allocations: 0 / 1.073 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.004887/0.9808, allocations: 2.391 MB / 1.075 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00231/0.9831, allocations: 477.5 kB / 1.076 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0267/1.01, allocations: 16.48 MB / 1.092 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00115/1.011, allocations: 1.411 MB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001792/1.013, allocations: 379.8 kB / 1.094 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008253/1.014, allocations: 0.5891 MB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of SimCode: time 1.182e-06/1.014, allocations: 0 / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06525/1.079, allocations: 40.27 MB / 1.134 GB, free: 3.656 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/1.079, allocations: 204.7 kB / 1.134 GB, free: 3.418 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.621/3.7, allocations: 0 / 1.134 GB, free: 3.418 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