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.0008956/0.0008956, allocations: 84.38 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.001008/0.001009, 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.357/1.357, allocations: 223.2 MB / 240 MB, free: 5.422 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.376/2.376, allocations: 390.4 MB / 0.6655 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003436/0.0003439, allocations: 8 kB / 0.8149 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8259/0.8262, allocations: 142.3 MB / 0.9539 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.004233/0.8305, allocations: 3.865 MB / 0.9576 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004027/0.8346, allocations: 2.992 MB / 0.9606 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003305/0.8349, allocations: 13.44 kB / 0.9606 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005632/0.8355, allocations: 158.8 kB / 0.9607 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0008721/0.8364, allocations: 306.1 kB / 0.961 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000599/0.837, allocations: 175.6 kB / 0.9612 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008264/0.8378, allocations: 0.6593 MB / 0.9618 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001193/0.839, allocations: 0.7351 MB / 0.9625 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002879/0.8393, allocations: 183.2 kB / 0.9627 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003852/0.8397, allocations: 236 kB / 0.9629 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.024e-05/0.8398, allocations: 18.03 kB / 0.963 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005761/0.8404, allocations: 233.2 kB / 0.9632 GB, free: 1.137 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001478/0.8405, allocations: 135.5 kB / 0.9633 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.372e-05/0.8406, allocations: 105.5 kB / 0.9634 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006363/0.8413, allocations: 0.6787 MB / 0.9641 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.8413, allocations: 0 / 0.9641 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.004e-06/0.8413, allocations: 0 / 0.9641 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.8413, allocations: 0 / 0.9641 GB, free: 0.5273 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.001271/0.8426, allocations: 0.7198 MB / 0.9648 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.8426, allocations: 8.656 kB / 0.9648 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001091/0.8428, allocations: 75.27 kB / 0.9649 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002661/0.8454, allocations: 0.6893 MB / 0.9655 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008119/0.8463, allocations: 466 kB / 0.966 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.8463, allocations: 20.84 kB / 0.966 GB, free: 15.13 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.159e-05/0.8464, allocations: 39.56 kB / 0.966 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001661/0.8481, allocations: 0.7862 MB / 0.9668 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.8481, allocations: 4.844 kB / 0.9668 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.474e-05/0.8481, allocations: 20.02 kB / 0.9668 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001318/0.8483, allocations: 52.61 kB / 0.9669 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001996/0.8503, allocations: 0.8757 MB / 0.9677 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003808/0.8541, allocations: 2.857 MB / 0.9705 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001571/0.8557, allocations: 0.525 MB / 0.971 GB, free: 11.44 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006694/0.8564, allocations: 266 kB / 0.9713 GB, free: 11.3 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001326/0.8565, allocations: 83.45 kB / 0.9714 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.8566, allocations: 39.66 kB / 0.9714 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 2.274e-06/0.8566, allocations: 0 / 0.9714 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24): time 0.01104/0.8676, allocations: 3.212 MB / 0.9745 GB, free: 9.527 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.8677, allocations: 85 kB / 0.9746 GB, free: 9.43 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005315/0.8682, allocations: 416.6 kB / 0.975 GB, free: 9.168 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.434e-05/0.8683, allocations: 34.95 kB / 0.9751 GB, free: 9.129 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002011/0.8685, allocations: 240.6 kB / 0.9753 GB, free: 8.914 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 8.264e-05/0.8686, allocations: 83.03 kB / 0.9754 GB, free: 8.844 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.285e-05/0.8686, allocations: 4 kB / 0.9754 GB, free: 8.84 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.8688, allocations: 349.3 kB / 0.9757 GB, free: 8.5 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008657/0.8697, allocations: 358 kB / 0.976 GB, free: 8.328 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009097/0.8706, allocations: 455.3 kB / 0.9765 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008698/0.8715, allocations: 392 kB / 0.9768 GB, free: 7.848 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.8715, allocations: 0 / 0.9768 GB, free: 7.848 MB / 0.7325 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004765/0.8762, allocations: 1.543 MB / 0.9784 GB, free: 6.52 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.8763, allocations: 153.9 kB / 0.9785 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.8764, allocations: 11.95 kB / 0.9785 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003626/0.88, allocations: 0.8442 MB / 0.9793 GB, free: 5.477 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005849/0.8806, allocations: 131.8 kB / 0.9795 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006631/0.8872, allocations: 4.658 MB / 0.984 GB, free: 432 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008022/0.8881, allocations: 119.8 kB / 0.9841 GB, free: 312 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.237e-05/0.8881, allocations: 15.94 kB / 0.9841 GB, free: 296 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 9.327e-06/0.8881, allocations: 4 kB / 0.9841 GB, free: 292 kB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00392/0.8921, allocations: 1.253 MB / 0.9854 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.8921, allocations: 4 kB / 0.9854 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002391/0.8945, allocations: 0.5626 MB / 0.9859 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006913/0.8952, allocations: 143.8 kB / 0.9861 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003569/0.8988, allocations: 2.498 MB / 0.9885 GB, free: 11.69 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007857/0.8996, allocations: 115.9 kB / 0.9886 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.557e-05/0.8997, allocations: 15.98 kB / 0.9886 GB, free: 11.56 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.000504/0.9002, allocations: 316.9 kB / 0.9889 GB, free: 11.24 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.384e-05/0.9003, allocations: 43.53 kB / 0.989 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004447/0.9047, allocations: 1.421 MB / 0.9904 GB, free: 9.754 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.9047, allocations: 0 / 0.9904 GB, free: 9.754 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.9048, allocations: 4 kB / 0.9904 GB, free: 9.75 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.9048, allocations: 3.984 kB / 0.9904 GB, free: 9.746 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005181/0.91, allocations: 2.092 MB / 0.9924 GB, free: 7.59 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.91, allocations: 7.938 kB / 0.9924 GB, free: 7.582 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003852/0.9104, allocations: 87.83 kB / 0.9925 GB, free: 7.496 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00332/0.9137, allocations: 0.7897 MB / 0.9933 GB, free: 6.699 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.767e-05/0.9138, allocations: 4 kB / 0.9933 GB, free: 6.695 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005652/0.9194, allocations: 4.489 MB / 0.9977 GB, free: 1.938 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.9195, allocations: 32 / 0.9977 GB, free: 1.938 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004221/0.9237, allocations: 1.435 MB / 0.9991 GB, free: 480 kB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002615/0.924, allocations: 168.7 kB / 0.9992 GB, free: 292 kB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.102e-05/0.924, allocations: 8 kB / 0.9992 GB, free: 284 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005758/0.9246, allocations: 107.7 kB / 0.9993 GB, free: 176 kB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.9247, allocations: 19.97 kB / 0.9993 GB, free: 156 kB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.159e-05/0.9248, allocations: 8.188 kB / 0.9994 GB, free: 148 kB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003848/0.9252, allocations: 311.1 kB / 0.9997 GB, free: 15.84 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.21e-07/0.9252, allocations: 0 / 0.9997 GB, free: 15.84 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008575/0.926, allocations: 204 kB / 0.9998 GB, free: 15.64 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.004611/0.9307, allocations: 2.012 MB / 1.002 GB, free: 13.59 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003505/0.9342, allocations: 1.617 MB / 1.003 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 8.106e-06/0.9342, allocations: 0 / 1.003 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001234/0.9355, allocations: 0.6739 MB / 1.004 GB, free: 11.23 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007509/0.9362, allocations: 113.9 kB / 1.004 GB, free: 11.12 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009805/0.946, allocations: 4.245 MB / 1.008 GB, free: 6.797 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007309/0.9468, allocations: 0.9132 MB / 1.009 GB, free: 5.859 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.000688/0.9475, allocations: 163.2 kB / 1.009 GB, free: 5.699 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002775/0.9478, allocations: 135.4 kB / 1.009 GB, free: 5.566 MB / 0.7637 GB Notification: Performance of SimCode: time 1.884e-06/0.9478, allocations: 0 / 1.009 GB, free: 5.566 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03367/0.9815, allocations: 15.87 MB / 1.025 GB, free: 5.949 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001753/0.9817, allocations: 231.1 kB / 1.025 GB, free: 5.707 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.124/3.106, allocations: 3.938 kB / 1.025 GB, free: 5.703 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