Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",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.0009179/0.0009178, allocations: 99.86 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.0009342/0.0009343, allocations: 177.3 kB / 15.94 MB, free: 228 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.36/1.36, allocations: 223.2 MB / 239.9 MB, free: 5.246 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.402/2.402, allocations: 390.3 MB / 0.6653 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00046/0.0004601, allocations: 12 kB / 0.8146 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.719/0.7194, allocations: 142.3 MB / 0.9536 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.005795/0.7253, allocations: 5.712 MB / 0.9592 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003976/0.7293, allocations: 2.888 MB / 0.962 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006294/0.7299, allocations: 23.5 kB / 0.962 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004331/0.7304, allocations: 120.4 kB / 0.9621 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001398/0.7318, allocations: 417 kB / 0.9625 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001059/0.7329, allocations: 323.5 kB / 0.9628 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001562/0.7344, allocations: 0.7396 MB / 0.9636 GB, free: 348 kB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001676/0.7361, allocations: 0.9349 MB / 0.9645 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006731/0.7368, allocations: 351.5 kB / 0.9648 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006176/0.7374, allocations: 400.5 kB / 0.9652 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.406e-05/0.7375, allocations: 35.19 kB / 0.9652 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005193/0.7381, allocations: 149.3 kB / 0.9654 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002765/0.7383, allocations: 243.4 kB / 0.9656 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001908/0.7385, allocations: 173.5 kB / 0.9658 GB, free: 14.99 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0009795/0.7395, allocations: 0.8663 MB / 0.9666 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.7395, allocations: 5 kB / 0.9666 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.523e-06/0.7395, allocations: 0 / 0.9666 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.065e-05/0.7396, allocations: 0 / 0.9666 GB, free: 14.38 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001665/0.7412, allocations: 1.002 MB / 0.9676 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.7413, allocations: 13.5 kB / 0.9676 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002767/0.7416, allocations: 121.9 kB / 0.9677 GB, free: 13.48 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001305/0.7429, allocations: 211.8 kB / 0.9679 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009133/0.7438, allocations: 0.5302 MB / 0.9684 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.019e-05/0.7439, allocations: 42.78 kB / 0.9685 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.744, allocations: 69.45 kB / 0.9685 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.7456, allocations: 1.077 MB / 0.9696 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.621e-05/0.7456, allocations: 6.125 kB / 0.9696 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.355e-05/0.7457, allocations: 30.11 kB / 0.9696 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000171/0.7459, allocations: 84.34 kB / 0.9697 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001203/0.7471, allocations: 0.7441 MB / 0.9704 GB, free: 11.7 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006164/0.7533, allocations: 5.905 MB / 0.9762 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009762/0.7543, allocations: 0.5489 MB / 0.9767 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.643e-05/0.7543, allocations: 8.938 kB / 0.9767 GB, free: 5.922 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.7544, allocations: 38.84 kB / 0.9768 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=47): time 2.405e-06/0.7544, allocations: 0 / 0.9768 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.00398/0.7584, allocations: 1.987 MB / 0.9787 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.7584, allocations: 56.91 kB / 0.9788 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006269/0.7591, allocations: 0.5497 MB / 0.9793 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.218e-05/0.7591, allocations: 39.05 kB / 0.9794 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002473/0.7594, allocations: 416 kB / 0.9798 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.7595, allocations: 173 kB / 0.9799 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.131e-05/0.7595, allocations: 10.62 kB / 0.9799 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001519/0.7597, allocations: 373.8 kB / 0.9803 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003722/0.7601, allocations: 276.4 kB / 0.9805 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00052/0.7606, allocations: 487.4 kB / 0.981 GB, free: 2.691 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004786/0.7611, allocations: 343.8 kB / 0.9813 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.7611, allocations: 2.094 kB / 0.9813 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001763/0.7629, allocations: 1.082 MB / 0.9824 GB, free: 1.633 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.7629, allocations: 9.25 kB / 0.9824 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.7629, allocations: 8.875 kB / 0.9824 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008067/0.7637, allocations: 279.1 kB / 0.9827 GB, free: 1.332 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004754/0.7642, allocations: 123.8 kB / 0.9828 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0063/0.7705, allocations: 6.701 MB / 0.9893 GB, free: 9.977 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007404/0.7713, allocations: 39.95 kB / 0.9894 GB, free: 9.938 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.965e-05/0.7714, allocations: 32 kB / 0.9894 GB, free: 9.906 MB / 0.7481 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 (67): * Single equations (assignments): 63 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000417/0.7718, allocations: 254.3 kB / 0.9897 GB, free: 9.648 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.7719, allocations: 79.27 kB / 0.9897 GB, free: 9.57 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00149/0.7734, allocations: 0.8847 MB / 0.9906 GB, free: 8.664 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.7734, allocations: 4 kB / 0.9906 GB, free: 8.66 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.7734, allocations: 7.984 kB / 0.9906 GB, free: 8.652 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.7734, allocations: 7.984 kB / 0.9906 GB, free: 8.645 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002553/0.776, allocations: 1.728 MB / 0.9923 GB, free: 6.828 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.776, allocations: 0 / 0.9923 GB, free: 6.828 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002569/0.7763, allocations: 59.94 kB / 0.9924 GB, free: 6.77 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006978/0.777, allocations: 271.3 kB / 0.9926 GB, free: 6.492 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.933e-05/0.777, allocations: 8 kB / 0.9926 GB, free: 6.484 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006235/0.7833, allocations: 6.674 MB / 0.9991 GB, free: 15.27 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.7833, allocations: 80 / 0.9991 GB, free: 15.27 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.7849, allocations: 1.049 MB / 1 GB, free: 14.14 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003504/0.7852, allocations: 196.2 kB / 1 GB, free: 13.93 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.682e-05/0.7853, allocations: 19.94 kB / 1 GB, free: 13.91 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003663/0.7857, allocations: 31.95 kB / 1 GB, free: 13.88 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.41e-05/0.7858, allocations: 47.88 kB / 1 GB, free: 13.83 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/0.7858, allocations: 15.94 kB / 1 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003893/0.7862, allocations: 379.1 kB / 1.001 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7862, allocations: 0 / 1.001 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008402/0.7871, allocations: 224 kB / 1.001 GB, free: 13.23 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * Single equations (assignments): 27 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001897/0.789, allocations: 2.025 MB / 1.003 GB, free: 11.12 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00204/0.791, allocations: 1.267 MB / 1.004 GB, free: 9.812 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.791, allocations: 0 / 1.004 GB, free: 9.812 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001172/0.7922, allocations: 0.8894 MB / 1.005 GB, free: 8.871 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009189/0.7932, allocations: 191.9 kB / 1.005 GB, free: 8.688 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007418/0.8006, allocations: 8.886 MB / 1.014 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000597/0.8012, allocations: 1.02 MB / 1.015 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0004214/0.8016, allocations: 126 kB / 1.015 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002827/0.8019, allocations: 247.4 kB / 1.015 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of SimCode: time 7.01e-07/0.8019, allocations: 0 / 1.015 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03092/0.8329, allocations: 16.21 MB / 1.031 GB, free: 14.25 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/0.8331, allocations: 209 kB / 1.031 GB, free: 14.01 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.983/2.816, allocations: 0 / 1.031 GB, free: 14.01 MB / 0.795 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat does not exist to compare? outputFormat=mat