Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 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.ACSimpleGrid,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_9_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.001383/0.001383, 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.001681/0.001681, 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.359/1.359, allocations: 223.2 MB / 239.9 MB, free: 5.473 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.426/2.426, allocations: 390.2 MB / 0.6653 GB, free: 3.031 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003242/0.0003242, allocations: 8 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7826/0.783, allocations: 142.3 MB / 0.9536 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.004034/0.7871, allocations: 3.706 MB / 0.9572 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003668/0.7908, allocations: 2.934 MB / 0.9601 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002663/0.7911, allocations: 9.219 kB / 0.9601 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004965/0.7916, allocations: 148.9 kB / 0.9602 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0008469/0.7924, allocations: 296 kB / 0.9605 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005532/0.793, allocations: 178.2 kB / 0.9607 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006059/0.7936, allocations: 344.2 kB / 0.961 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001192/0.7948, allocations: 0.7337 MB / 0.9617 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003127/0.7951, allocations: 160.6 kB / 0.9619 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003175/0.7955, allocations: 181.1 kB / 0.9621 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.977e-05/0.7955, allocations: 17.44 kB / 0.9621 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007328/0.7963, allocations: 240.1 kB / 0.9623 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.7964, allocations: 123.5 kB / 0.9624 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001063/0.7965, allocations: 105.8 kB / 0.9625 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006862/0.7972, allocations: 0.6653 MB / 0.9632 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.7972, allocations: 1 kB / 0.9632 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.823e-06/0.7972, allocations: 0 / 0.9632 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.7972, allocations: 4 kB / 0.9632 GB, free: 0.9141 MB / 0.7169 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.001147/0.7984, allocations: 0.7099 MB / 0.9639 GB, free: 312 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.7984, allocations: 13.33 kB / 0.9639 GB, free: 308 kB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.083e-05/0.7985, allocations: 67.86 kB / 0.9639 GB, free: 244 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002937/0.8015, allocations: 0.7037 MB / 0.9646 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.8025, allocations: 476.6 kB / 0.9651 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.8025, allocations: 20.84 kB / 0.9651 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.344e-05/0.8026, allocations: 36.3 kB / 0.9651 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001679/0.8043, allocations: 0.7837 MB / 0.9659 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.003e-05/0.8044, allocations: 8.812 kB / 0.9659 GB, free: 15.01 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.38e-05/0.8044, allocations: 11.31 kB / 0.9659 GB, free: 15 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001408/0.8046, allocations: 53.09 kB / 0.966 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002182/0.8068, allocations: 0.8762 MB / 0.9668 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004454/0.8112, allocations: 2.864 MB / 0.9696 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001687/0.8129, allocations: 0.5178 MB / 0.9701 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001379/0.8131, allocations: 84.33 kB / 0.9702 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.8131, allocations: 39.77 kB / 0.9703 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 4.298e-06/0.8131, allocations: 0 / 0.9703 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24): time 0.01202/0.8252, allocations: 3.211 MB / 0.9734 GB, free: 10.05 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.8252, allocations: 79.55 kB / 0.9735 GB, free: 9.961 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005604/0.8258, allocations: 430.1 kB / 0.9739 GB, free: 9.688 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.825e-05/0.8259, allocations: 27.17 kB / 0.9739 GB, free: 9.656 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/0.826, allocations: 244.5 kB / 0.9741 GB, free: 9.438 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 8.467e-05/0.8261, allocations: 80.78 kB / 0.9742 GB, free: 9.367 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.118e-05/0.8262, allocations: 5.375 kB / 0.9742 GB, free: 9.363 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.8263, allocations: 341.8 kB / 0.9745 GB, free: 9.031 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009545/0.8273, allocations: 365.8 kB / 0.9749 GB, free: 8.852 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000982/0.8283, allocations: 445.4 kB / 0.9753 GB, free: 8.57 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00099/0.8293, allocations: 388.1 kB / 0.9757 GB, free: 8.383 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.8293, allocations: 1.062 kB / 0.9757 GB, free: 8.383 MB / 0.7325 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00537/0.8347, allocations: 1.549 MB / 0.9772 GB, free: 7.43 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003599/0.835, allocations: 0.7903 MB / 0.978 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.8351, allocations: 0 / 0.978 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003961/0.839, allocations: 0.8558 MB / 0.9788 GB, free: 5.715 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006354/0.8397, allocations: 135.8 kB / 0.9789 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006913/0.8466, allocations: 4.784 MB / 0.9836 GB, free: 0.5273 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008599/0.8475, allocations: 119.9 kB / 0.9837 GB, free: 420 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.484e-05/0.8476, allocations: 12 kB / 0.9837 GB, free: 408 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 9.668e-06/0.8476, allocations: 4 kB / 0.9837 GB, free: 404 kB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004223/0.8518, allocations: 1.257 MB / 0.985 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.8518, allocations: 0 / 0.985 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002574/0.8544, allocations: 0.5549 MB / 0.9855 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006644/0.8551, allocations: 147.8 kB / 0.9856 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003604/0.8587, allocations: 2.564 MB / 0.9881 GB, free: 11.73 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007709/0.8595, allocations: 115.9 kB / 0.9883 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.429e-05/0.8596, allocations: 11.98 kB / 0.9883 GB, free: 11.61 MB / 0.7481 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.0004593/0.86, allocations: 321 kB / 0.9886 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.8602, allocations: 39.53 kB / 0.9886 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004673/0.8648, allocations: 1.423 MB / 0.99 GB, free: 9.801 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.8649, allocations: 7.938 kB / 0.99 GB, free: 9.793 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.8649, allocations: 0 / 0.99 GB, free: 9.793 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.8649, allocations: 7.984 kB / 0.99 GB, free: 9.785 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00557/0.8705, allocations: 2.079 MB / 0.9921 GB, free: 7.641 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.8705, allocations: 4 kB / 0.9921 GB, free: 7.637 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003956/0.8709, allocations: 83.98 kB / 0.9921 GB, free: 7.555 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003505/0.8744, allocations: 0.8093 MB / 0.9929 GB, free: 6.738 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.274e-05/0.8744, allocations: 8 kB / 0.9929 GB, free: 6.73 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00591/0.8804, allocations: 4.607 MB / 0.9974 GB, free: 1.855 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.8804, allocations: 4.031 kB / 0.9974 GB, free: 1.852 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004699/0.8851, allocations: 1.469 MB / 0.9989 GB, free: 340 kB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003555/0.8855, allocations: 168.7 kB / 0.999 GB, free: 152 kB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.35e-05/0.8856, allocations: 8 kB / 0.999 GB, free: 144 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006221/0.8862, allocations: 99.84 kB / 0.9991 GB, free: 44 kB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.8863, allocations: 27.86 kB / 0.9992 GB, free: 16 kB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.954e-05/0.8864, allocations: 8 kB / 0.9992 GB, free: 8 kB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004323/0.8868, allocations: 311.1 kB / 0.9995 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8868, allocations: 0 / 0.9995 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0009445/0.8878, allocations: 204 kB / 0.9997 GB, free: 15.51 MB / 0.7637 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.004909/0.8927, allocations: 2.247 MB / 1.002 GB, free: 13.2 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003859/0.8966, allocations: 1.624 MB / 1.003 GB, free: 11.54 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.8966, allocations: 0 / 1.003 GB, free: 11.54 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001327/0.8979, allocations: 0.6705 MB / 1.004 GB, free: 10.85 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006859/0.8986, allocations: 109.4 kB / 1.004 GB, free: 10.74 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01078/0.9094, allocations: 5.418 MB / 1.009 GB, free: 5.227 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005918/0.9101, allocations: 0.9249 MB / 1.01 GB, free: 4.277 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006209/0.9107, allocations: 151.2 kB / 1.011 GB, free: 4.129 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000267/0.911, allocations: 139.4 kB / 1.011 GB, free: 3.992 MB / 0.7637 GB Notification: Performance of SimCode: time 1.032e-06/0.911, allocations: 0 / 1.011 GB, free: 3.992 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03442/0.9454, allocations: 15.84 MB / 1.026 GB, free: 4.402 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001928/0.9457, allocations: 227.7 kB / 1.026 GB, free: 4.156 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.021/2.967, allocations: 2.391 kB / 1.026 GB, free: 4.156 MB / 0.7794 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat does not exist to compare? outputFormat=mat