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.001461/0.001462, allocations: 100.6 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.001755/0.001755, 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 2.517/2.517, allocations: 223.2 MB / 239.9 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.817/4.817, allocations: 409.2 MB / 0.6838 GB, free: 1 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006145/0.0006147, allocations: 8 kB / 0.8375 GB, free: 6.582 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.54/1.541, allocations: 146.8 MB / 0.9809 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.008878/1.55, allocations: 3.725 MB / 0.9845 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.009208/1.559, allocations: 2.928 MB / 0.9874 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007103/1.56, allocations: 4 kB / 0.9874 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001079/1.561, allocations: 155.2 kB / 0.9875 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.002018/1.563, allocations: 292.8 kB / 0.9878 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.001134/1.564, allocations: 186.6 kB / 0.988 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.001188/1.565, allocations: 335.3 kB / 0.9883 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002317/1.568, allocations: 0.7314 MB / 0.989 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006418/1.568, allocations: 163.4 kB / 0.9892 GB, free: 13.78 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007191/1.569, allocations: 179.3 kB / 0.9893 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 7.181e-05/1.569, allocations: 16 kB / 0.9894 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001305/1.57, allocations: 239.7 kB / 0.9896 GB, free: 13.35 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002651/1.571, allocations: 119.7 kB / 0.9897 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002275/1.571, allocations: 109.5 kB / 0.9898 GB, free: 13.12 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001325/1.572, allocations: 0.6607 MB / 0.9904 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/1.572, allocations: 4 kB / 0.9904 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.604e-06/1.572, allocations: 0 / 0.9904 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.116e-05/1.572, allocations: 0 / 0.9904 GB, free: 12.46 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.002319/1.575, allocations: 0.7215 MB / 0.9912 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 7.006e-05/1.575, allocations: 8.031 kB / 0.9912 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001637/1.575, allocations: 74.53 kB / 0.9912 GB, free: 11.59 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005496/1.58, allocations: 0.7014 MB / 0.9919 GB, free: 10.89 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002089/1.583, allocations: 474.6 kB / 0.9924 GB, free: 10.39 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.955e-05/1.583, allocations: 24.66 kB / 0.9924 GB, free: 10.36 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/1.583, allocations: 28 kB / 0.9924 GB, free: 10.34 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003115/1.586, allocations: 0.7864 MB / 0.9932 GB, free: 9.52 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.425e-05/1.586, allocations: 4 kB / 0.9932 GB, free: 9.516 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.673e-05/1.586, allocations: 12 kB / 0.9932 GB, free: 9.504 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002475/1.586, allocations: 48.59 kB / 0.9932 GB, free: 9.457 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003468/1.59, allocations: 0.8804 MB / 0.9941 GB, free: 8.574 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008055/1.598, allocations: 2.859 MB / 0.9969 GB, free: 5.496 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003069/1.601, allocations: 0.5253 MB / 0.9974 GB, free: 4.961 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002752/1.601, allocations: 93.08 kB / 0.9975 GB, free: 4.852 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.752e-05/1.602, allocations: 34.56 kB / 0.9975 GB, free: 4.809 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=16): time 8.065e-06/1.602, allocations: 3.984 kB / 0.9975 GB, free: 4.805 MB / 0.7481 GB Notification: Performance of matching and sorting (n=24): time 0.02117/1.623, allocations: 3.209 MB / 1.001 GB, free: 1.562 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/1.623, allocations: 77.11 kB / 1.001 GB, free: 1.469 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001217/1.624, allocations: 417.6 kB / 1.001 GB, free: 1.055 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.000149/1.624, allocations: 33.7 kB / 1.001 GB, free: 1.016 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003614/1.625, allocations: 239.8 kB / 1.001 GB, free: 0.7734 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002103/1.625, allocations: 82.84 kB / 1.001 GB, free: 0.6914 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.957e-05/1.625, allocations: 4 kB / 1.001 GB, free: 0.6875 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000296/1.625, allocations: 350.8 kB / 1.002 GB, free: 344 kB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001623/1.627, allocations: 359.7 kB / 1.002 GB, free: 15.98 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/1.629, allocations: 453.1 kB / 1.003 GB, free: 15.5 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001722/1.631, allocations: 388.8 kB / 1.003 GB, free: 15.12 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/1.631, allocations: 4 kB / 1.003 GB, free: 15.12 MB / 0.7637 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00977/1.64, allocations: 1.539 MB / 1.004 GB, free: 13.57 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007865/1.641, allocations: 0.7901 MB / 1.005 GB, free: 12.72 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.19e-05/1.641, allocations: 4 kB / 1.005 GB, free: 12.71 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006975/1.648, allocations: 0.8519 MB / 1.006 GB, free: 11.86 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/1.65, allocations: 127.8 kB / 1.006 GB, free: 11.73 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01302/1.663, allocations: 4.793 MB / 1.011 GB, free: 6.672 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001507/1.664, allocations: 119.8 kB / 1.011 GB, free: 6.555 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001477/1.664, allocations: 24.05 kB / 1.011 GB, free: 6.531 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/1.664, allocations: 4 kB / 1.011 GB, free: 6.527 MB / 0.7637 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007532/1.672, allocations: 1.25 MB / 1.012 GB, free: 5.273 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.139e-05/1.672, allocations: 0 / 1.012 GB, free: 5.273 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004521/1.677, allocations: 0.5508 MB / 1.013 GB, free: 4.719 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/1.678, allocations: 151.8 kB / 1.013 GB, free: 4.57 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007254/1.685, allocations: 2.569 MB / 1.015 GB, free: 1.867 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/1.687, allocations: 111.9 kB / 1.016 GB, free: 1.758 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001787/1.687, allocations: 23.98 kB / 1.016 GB, free: 1.734 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.0009759/1.688, allocations: 313 kB / 1.016 GB, free: 1.418 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003283/1.688, allocations: 39.53 kB / 1.016 GB, free: 1.379 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008289/1.697, allocations: 1.424 MB / 1.017 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-05/1.697, allocations: 3.953 kB / 1.017 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/1.697, allocations: 4 kB / 1.017 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/1.697, allocations: 0 / 1.017 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0112/1.708, allocations: 2.083 MB / 1.019 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.586e-05/1.708, allocations: 0 / 1.019 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007826/1.709, allocations: 87.78 kB / 1.019 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006117/1.715, allocations: 0.7897 MB / 1.02 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001158/1.715, allocations: 11.98 kB / 1.02 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01209/1.728, allocations: 4.606 MB / 1.025 GB, free: 8.004 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.118e-05/1.728, allocations: 0 / 1.025 GB, free: 8.004 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007599/1.735, allocations: 1.473 MB / 1.026 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007188/1.736, allocations: 168.7 kB / 1.026 GB, free: 6.297 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002371/1.736, allocations: 11.95 kB / 1.026 GB, free: 6.285 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/1.738, allocations: 95.84 kB / 1.026 GB, free: 6.191 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002792/1.738, allocations: 23.97 kB / 1.026 GB, free: 6.168 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.715e-05/1.738, allocations: 8 kB / 1.026 GB, free: 6.16 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.00111/1.739, allocations: 311.1 kB / 1.027 GB, free: 5.859 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.9e-07/1.739, allocations: 4 kB / 1.027 GB, free: 5.855 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.002162/1.741, allocations: 200 kB / 1.027 GB, free: 5.66 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.009013/1.75, allocations: 2.256 MB / 1.029 GB, free: 3.352 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.006804/1.757, allocations: 1.629 MB / 1.031 GB, free: 1.684 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.696e-05/1.757, allocations: 4 kB / 1.031 GB, free: 1.68 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.002311/1.76, allocations: 0.6652 MB / 1.031 GB, free: 0.9883 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001286/1.761, allocations: 113.8 kB / 1.031 GB, free: 0.8828 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01984/1.781, allocations: 5.421 MB / 1.037 GB, free: 11.36 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/1.782, allocations: 0.9249 MB / 1.038 GB, free: 10.41 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.00116/1.783, allocations: 159.2 kB / 1.038 GB, free: 10.25 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004092/1.784, allocations: 135.4 kB / 1.038 GB, free: 10.12 MB / 0.795 GB Notification: Performance of SimCode: time 3.216e-06/1.784, allocations: 0 / 1.038 GB, free: 10.12 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06216/1.846, allocations: 15.83 MB / 1.053 GB, free: 10.56 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004352/1.846, allocations: 237.5 kB / 1.054 GB, free: 10.31 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.397/5.243, allocations: 3.938 kB / 1.054 GB, free: 10.31 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