Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.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.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGridMedium",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGridMedium",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.001177/0.001177, allocations: 86.25 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.001479/0.001479, 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.624/1.624, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.658/2.658, allocations: 409.4 MB / 0.684 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003512, allocations: 11.94 kB / 0.8378 GB, free: 6.504 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.774/0.7744, allocations: 146.8 MB / 0.9811 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium): time 0.00652/0.781, allocations: 4.595 MB / 0.9856 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005603/0.7866, allocations: 3.485 MB / 0.989 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004752/0.7872, allocations: 4 kB / 0.989 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.7882, allocations: 222.8 kB / 0.9893 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.001316/0.7895, allocations: 371.5 kB / 0.9896 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007289/0.7903, allocations: 199.4 kB / 0.9898 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.001348/0.7917, allocations: 0.7477 MB / 0.9905 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001471/0.7931, allocations: 0.7426 MB / 0.9912 GB, free: 11.86 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000422/0.7936, allocations: 203.2 kB / 0.9914 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005302/0.7941, allocations: 259 kB / 0.9917 GB, free: 11.4 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 9.231e-05/0.7942, allocations: 20 kB / 0.9917 GB, free: 11.38 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008668/0.7951, allocations: 327.6 kB / 0.992 GB, free: 11.06 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.7953, allocations: 135.6 kB / 0.9922 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002122/0.7955, allocations: 113.5 kB / 0.9923 GB, free: 10.81 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001058/0.7966, allocations: 0.7598 MB / 0.993 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.7966, allocations: 4 kB / 0.993 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.834e-06/0.7966, allocations: 0 / 0.993 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.721e-05/0.7967, allocations: 0 / 0.993 GB, free: 10.05 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: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001693/0.7984, allocations: 0.7596 MB / 0.9937 GB, free: 9.234 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.7984, allocations: 11.97 kB / 0.9938 GB, free: 9.223 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001879/0.7986, allocations: 78.52 kB / 0.9938 GB, free: 9.137 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002842/0.8015, allocations: 0.7131 MB / 0.9945 GB, free: 8.422 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001259/0.8027, allocations: 0.5266 MB / 0.995 GB, free: 7.859 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/0.8028, allocations: 24.64 kB / 0.9951 GB, free: 7.836 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.8029, allocations: 39.84 kB / 0.9951 GB, free: 7.797 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001701/0.8046, allocations: 0.8434 MB / 0.9959 GB, free: 6.918 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.8046, allocations: 0 / 0.9959 GB, free: 6.918 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.396e-05/0.8047, allocations: 12 kB / 0.9959 GB, free: 6.906 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002031/0.8049, allocations: 68.56 kB / 0.996 GB, free: 6.84 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002053/0.807, allocations: 0.9428 MB / 0.9969 GB, free: 5.895 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004507/0.8115, allocations: 2.941 MB / 0.9998 GB, free: 2.742 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001514/0.813, allocations: 0.5689 MB / 1 GB, free: 2.164 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007031/0.8137, allocations: 316.9 kB / 1.001 GB, free: 1.852 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001328/0.8139, allocations: 89.28 kB / 1.001 GB, free: 1.746 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.956e-05/0.814, allocations: 34.75 kB / 1.001 GB, free: 1.703 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=22): time 2.595e-06/0.814, allocations: 3.938 kB / 1.001 GB, free: 1.699 MB / 0.7481 GB Notification: Performance of matching and sorting (n=36): time 0.01339/0.8274, allocations: 4.089 MB / 1.005 GB, free: 13.58 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/0.8275, allocations: 81.11 kB / 1.005 GB, free: 13.48 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006787/0.8282, allocations: 453.6 kB / 1.005 GB, free: 13.03 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 6.205e-05/0.8282, allocations: 29.7 kB / 1.005 GB, free: 13 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002064/0.8284, allocations: 244.2 kB / 1.006 GB, free: 12.75 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.8286, allocations: 130.1 kB / 1.006 GB, free: 12.62 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.048e-05/0.8287, allocations: 4 kB / 1.006 GB, free: 12.62 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001588/0.8288, allocations: 350.8 kB / 1.006 GB, free: 12.27 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009555/0.8298, allocations: 444.5 kB / 1.006 GB, free: 11.84 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001028/0.8308, allocations: 0.5212 MB / 1.007 GB, free: 11.27 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009976/0.8318, allocations: 481.3 kB / 1.007 GB, free: 10.8 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.8318, allocations: 4 kB / 1.007 GB, free: 10.8 MB / 0.7637 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.005667/0.8375, allocations: 1.92 MB / 1.009 GB, free: 8.867 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001235/0.8377, allocations: 152 kB / 1.009 GB, free: 8.688 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.8377, allocations: 8 kB / 1.009 GB, free: 8.68 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004434/0.8421, allocations: 1.098 MB / 1.011 GB, free: 7.574 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006192/0.8428, allocations: 131.8 kB / 1.011 GB, free: 7.445 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01063/0.8534, allocations: 6.389 MB / 1.017 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008626/0.8543, allocations: 115.8 kB / 1.017 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.541e-05/0.8544, allocations: 16 kB / 1.017 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.8545, allocations: 13.41 kB / 1.017 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004824/0.8593, allocations: 1.625 MB / 1.019 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.8593, allocations: 4.031 kB / 1.019 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003186/0.8625, allocations: 0.8018 MB / 1.019 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006039/0.8632, allocations: 139.8 kB / 1.02 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008097/0.8713, allocations: 5.566 MB / 1.025 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009289/0.8722, allocations: 111.8 kB / 1.025 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.8724, allocations: 19.98 kB / 1.025 GB, free: 8.102 MB / 0.7794 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%) 8} * Non-linear torn systems: 1 {2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0006058/0.873, allocations: 332.9 kB / 1.025 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001874/0.8732, allocations: 39.53 kB / 1.025 GB, free: 7.727 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005396/0.8786, allocations: 1.836 MB / 1.027 GB, free: 5.871 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.8786, allocations: 4 kB / 1.027 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.8786, allocations: 0 / 1.027 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.8787, allocations: 7.984 kB / 1.027 GB, free: 5.859 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006604/0.8853, allocations: 2.566 MB / 1.03 GB, free: 3.219 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/0.8853, allocations: 0 / 1.03 GB, free: 3.219 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004084/0.8857, allocations: 83.91 kB / 1.03 GB, free: 3.137 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004174/0.8899, allocations: 1.024 MB / 1.031 GB, free: 2.105 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.806e-05/0.89, allocations: 15.98 kB / 1.031 GB, free: 2.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009567/0.8996, allocations: 6.056 MB / 1.037 GB, free: 11.77 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.383e-05/0.8997, allocations: 12.08 kB / 1.037 GB, free: 11.76 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005029/0.9047, allocations: 1.79 MB / 1.039 GB, free: 9.934 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003723/0.9051, allocations: 200.5 kB / 1.039 GB, free: 9.719 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001356/0.9052, allocations: 8 kB / 1.039 GB, free: 9.711 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000649/0.9059, allocations: 95.86 kB / 1.039 GB, free: 9.617 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.9061, allocations: 35.94 kB / 1.039 GB, free: 9.582 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.296e-05/0.9061, allocations: 12 kB / 1.039 GB, free: 9.57 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0005787/0.9067, allocations: 335.1 kB / 1.039 GB, free: 9.246 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9067, allocations: 4 kB / 1.039 GB, free: 9.242 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.001409/0.9081, allocations: 288 kB / 1.039 GB, free: 8.961 MB / 0.795 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%) 8} * Non-linear torn systems: 1 {2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.005552/0.9137, allocations: 2.409 MB / 1.042 GB, free: 6.508 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.006595/0.9203, allocations: 2.544 MB / 1.044 GB, free: 3.91 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.9204, allocations: 0 / 1.044 GB, free: 3.91 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.002528/0.9229, allocations: 0.9772 MB / 1.045 GB, free: 2.906 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009501/0.9239, allocations: 126.9 kB / 1.045 GB, free: 2.785 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01241/0.9363, allocations: 5.108 MB / 1.05 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000773/0.9371, allocations: 0.9531 MB / 1.051 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0006401/0.9378, allocations: 155.4 kB / 1.051 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003206/0.9381, allocations: 151.4 kB / 1.052 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of SimCode: time 1.393e-06/0.9381, allocations: 0 / 1.052 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03753/0.9757, allocations: 20.99 MB / 1.072 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001988/0.9759, allocations: 257.2 kB / 1.072 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.289/3.265, allocations: 0 / 1.072 GB, free: 7.328 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGridMedium_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACSimpleGridMedium.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium_res.mat does not exist to compare? outputFormat=mat