Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",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.0008376/0.0008375, 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.001086/0.001086, 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.42/1.42, allocations: 223.2 MB / 240 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.64/2.64, allocations: 409.4 MB / 0.684 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005659/0.0005662, allocations: 12 kB / 0.8378 GB, free: 6.461 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8458/0.8464, allocations: 146.8 MB / 0.9811 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.004802/0.8512, allocations: 3.864 MB / 0.9849 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004216/0.8555, allocations: 3.002 MB / 0.9878 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003034/0.8558, allocations: 7.938 kB / 0.9879 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.0005662/0.8564, allocations: 151.1 kB / 0.988 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.0009223/0.8573, allocations: 312.2 kB / 0.9883 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005723/0.8579, allocations: 190.8 kB / 0.9885 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.0008852/0.8588, allocations: 0.6502 MB / 0.9891 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001219/0.86, allocations: 0.7392 MB / 0.9898 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000335/0.8604, allocations: 183.2 kB / 0.99 GB, free: 13.12 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004179/0.8608, allocations: 239.1 kB / 0.9902 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 5.764e-05/0.8609, allocations: 16 kB / 0.9903 GB, free: 12.87 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006257/0.8615, allocations: 231.7 kB / 0.9905 GB, free: 12.64 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001651/0.8617, allocations: 139.6 kB / 0.9906 GB, free: 12.51 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.8618, allocations: 105.5 kB / 0.9907 GB, free: 12.4 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0008051/0.8626, allocations: 0.6724 MB / 0.9914 GB, free: 11.73 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.8627, allocations: 0 / 0.9914 GB, free: 11.73 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.094e-06/0.8627, allocations: 0 / 0.9914 GB, free: 11.73 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.566e-05/0.8627, allocations: 0 / 0.9914 GB, free: 11.73 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001388/0.8641, allocations: 0.7206 MB / 0.9921 GB, free: 10.95 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.8641, allocations: 8.031 kB / 0.9921 GB, free: 10.95 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001067/0.8642, allocations: 70.53 kB / 0.9921 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002592/0.8668, allocations: 0.6936 MB / 0.9928 GB, free: 10.17 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008306/0.8677, allocations: 482.5 kB / 0.9933 GB, free: 9.66 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.8677, allocations: 20.66 kB / 0.9933 GB, free: 9.641 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.245e-05/0.8678, allocations: 28 kB / 0.9933 GB, free: 9.613 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.8693, allocations: 0.7903 MB / 0.9941 GB, free: 8.793 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.8693, allocations: 3.938 kB / 0.9941 GB, free: 8.789 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.639e-05/0.8694, allocations: 15.94 kB / 0.9941 GB, free: 8.773 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001286/0.8695, allocations: 56.59 kB / 0.9942 GB, free: 8.719 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001884/0.8714, allocations: 0.8765 MB / 0.995 GB, free: 7.84 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003728/0.8751, allocations: 2.859 MB / 0.9978 GB, free: 4.762 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/0.8766, allocations: 0.5176 MB / 0.9983 GB, free: 4.234 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006088/0.8772, allocations: 260.6 kB / 0.9986 GB, free: 3.977 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001112/0.8773, allocations: 97.08 kB / 0.9987 GB, free: 3.863 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.8773, allocations: 34.56 kB / 0.9987 GB, free: 3.82 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=16): time 1.983e-06/0.8774, allocations: 3.938 kB / 0.9987 GB, free: 3.816 MB / 0.7481 GB Notification: Performance of matching and sorting (n=24): time 0.01007/0.8874, allocations: 3.209 MB / 1.002 GB, free: 0.5742 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.8875, allocations: 81.11 kB / 1.002 GB, free: 488 kB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004906/0.888, allocations: 417.6 kB / 1.002 GB, free: 64 kB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.21e-05/0.8881, allocations: 29.7 kB / 1.002 GB, free: 28 kB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001971/0.8883, allocations: 243.8 kB / 1.003 GB, free: 15.78 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 9.032e-05/0.8884, allocations: 82.84 kB / 1.003 GB, free: 15.7 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.223e-05/0.8884, allocations: 8 kB / 1.003 GB, free: 15.69 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.8885, allocations: 346.8 kB / 1.003 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008042/0.8893, allocations: 363.7 kB / 1.003 GB, free: 14.99 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008438/0.8902, allocations: 445.1 kB / 1.004 GB, free: 14.52 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008153/0.891, allocations: 384.9 kB / 1.004 GB, free: 14.14 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.891, allocations: 0 / 1.004 GB, free: 14.14 MB / 0.7637 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004497/0.8955, allocations: 1.548 MB / 1.006 GB, free: 12.58 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001/0.8957, allocations: 156.2 kB / 1.006 GB, free: 12.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.8957, allocations: 0 / 1.006 GB, free: 12.4 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003446/0.8991, allocations: 0.852 MB / 1.007 GB, free: 11.54 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005449/0.8997, allocations: 135.8 kB / 1.007 GB, free: 11.41 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006306/0.906, allocations: 4.654 MB / 1.011 GB, free: 6.484 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006992/0.9067, allocations: 119.9 kB / 1.011 GB, free: 6.367 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.795e-05/0.9068, allocations: 19.98 kB / 1.011 GB, free: 6.348 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 8.185e-06/0.9068, allocations: 4 kB / 1.011 GB, free: 6.344 MB / 0.7637 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003638/0.9104, allocations: 1.257 MB / 1.013 GB, free: 5.082 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.9105, allocations: 4 kB / 1.013 GB, free: 5.078 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002237/0.9127, allocations: 0.551 MB / 1.013 GB, free: 4.523 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005717/0.9133, allocations: 143.8 kB / 1.013 GB, free: 4.383 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00352/0.9168, allocations: 2.506 MB / 1.016 GB, free: 1.742 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006338/0.9175, allocations: 107.8 kB / 1.016 GB, free: 1.637 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.67e-05/0.9175, allocations: 19.98 kB / 1.016 GB, free: 1.617 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (29): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004023/0.9179, allocations: 321 kB / 1.016 GB, free: 1.293 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.9181, allocations: 35.53 kB / 1.016 GB, free: 1.258 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004231/0.9223, allocations: 1.432 MB / 1.018 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.258e-06/0.9223, allocations: 4 kB / 1.018 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.9223, allocations: 3.938 kB / 1.018 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.9223, allocations: 8 kB / 1.018 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004998/0.9274, allocations: 2.076 MB / 1.02 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.9274, allocations: 0 / 1.02 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003613/0.9277, allocations: 87.94 kB / 1.02 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003113/0.9309, allocations: 0.7896 MB / 1.021 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.445e-05/0.9309, allocations: 11.94 kB / 1.021 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005774/0.9367, allocations: 4.485 MB / 1.025 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.9367, allocations: 0 / 1.025 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004091/0.9408, allocations: 1.441 MB / 1.026 GB, free: 6.523 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002835/0.9411, allocations: 172.6 kB / 1.027 GB, free: 6.336 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.9413, allocations: 7.984 kB / 1.027 GB, free: 6.328 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005623/0.9418, allocations: 99.84 kB / 1.027 GB, free: 6.23 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.942, allocations: 23.97 kB / 1.027 GB, free: 6.207 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.26e-05/0.942, allocations: 11.98 kB / 1.027 GB, free: 6.195 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000438/0.9424, allocations: 307.1 kB / 1.027 GB, free: 5.898 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.51e-07/0.9424, allocations: 0 / 1.027 GB, free: 5.898 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0009344/0.9434, allocations: 208 kB / 1.027 GB, free: 5.695 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.004554/0.9479, allocations: 2.014 MB / 1.029 GB, free: 3.641 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.003512/0.9515, allocations: 1.629 MB / 1.031 GB, free: 1.973 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.9515, allocations: 3.938 kB / 1.031 GB, free: 1.969 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.9527, allocations: 0.6652 MB / 1.031 GB, free: 1.277 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008169/0.9536, allocations: 127.9 kB / 1.031 GB, free: 1.16 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00941/0.963, allocations: 4.244 MB / 1.036 GB, free: 12.83 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005443/0.9636, allocations: 0.9171 MB / 1.037 GB, free: 11.89 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0005907/0.9642, allocations: 155.2 kB / 1.037 GB, free: 11.73 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002438/0.9644, allocations: 135.4 kB / 1.037 GB, free: 11.6 MB / 0.795 GB Notification: Performance of SimCode: time 7.81e-07/0.9644, allocations: 4 kB / 1.037 GB, free: 11.59 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03539/0.9998, allocations: 15.86 MB / 1.052 GB, free: 12 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/1, allocations: 242.7 kB / 1.053 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.067/3.067, allocations: 0 / 1.053 GB, free: 11.75 MB / 0.8106 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat does not exist to compare? outputFormat=mat