Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.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.DC.Lines.Examples.DCLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLine",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.0009291/0.0009289, allocations: 86.95 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.001117/0.001117, 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.424/1.424, allocations: 223.2 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.61/2.61, allocations: 409.4 MB / 0.684 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003581/0.0003582, allocations: 19.88 kB / 0.8378 GB, free: 6.52 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7647/0.7651, allocations: 146.8 MB / 0.9811 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.006389/0.7715, allocations: 5.591 MB / 0.9866 GB, free: 0.6836 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00608/0.7777, allocations: 4.221 MB / 0.9907 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005643/0.7783, allocations: 19.88 kB / 0.9907 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.0005014/0.7788, allocations: 138.9 kB / 0.9909 GB, free: 12.29 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.001765/0.7806, allocations: 0.6297 MB / 0.9915 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006788/0.7812, allocations: 242.5 kB / 0.9917 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.001317/0.7826, allocations: 1.199 MB / 0.9929 GB, free: 10.23 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000668/0.7833, allocations: 496.3 kB / 0.9934 GB, free: 9.711 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004976/0.7838, allocations: 382.4 kB / 0.9937 GB, free: 9.336 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007045/0.7845, allocations: 470.2 kB / 0.9942 GB, free: 8.875 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 7.098e-05/0.7846, allocations: 35.94 kB / 0.9942 GB, free: 8.84 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000366/0.7849, allocations: 143.8 kB / 0.9943 GB, free: 8.699 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002032/0.7851, allocations: 207.2 kB / 0.9945 GB, free: 8.496 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0001436/0.7853, allocations: 165.3 kB / 0.9947 GB, free: 8.328 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0007342/0.786, allocations: 0.8009 MB / 0.9955 GB, free: 7.527 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.786, allocations: 0 / 0.9955 GB, free: 7.527 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.743e-06/0.7861, allocations: 0 / 0.9955 GB, free: 7.527 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.026e-05/0.7861, allocations: 0 / 0.9955 GB, free: 7.527 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001557/0.7876, allocations: 0.9853 MB / 0.9964 GB, free: 6.492 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.7877, allocations: 8.031 kB / 0.9965 GB, free: 6.484 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/0.7878, allocations: 102.4 kB / 0.9965 GB, free: 6.375 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002908/0.7907, allocations: 0.6544 MB / 0.9972 GB, free: 5.719 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008276/0.7916, allocations: 0.5182 MB / 0.9977 GB, free: 5.16 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.653e-05/0.7916, allocations: 37.31 kB / 0.9977 GB, free: 5.121 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.124e-05/0.7917, allocations: 48 kB / 0.9978 GB, free: 5.074 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001852/0.7936, allocations: 1.025 MB / 0.9988 GB, free: 4.004 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.7936, allocations: 4 kB / 0.9988 GB, free: 4 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.468e-05/0.7937, allocations: 20 kB / 0.9988 GB, free: 3.98 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.108e-05/0.7937, allocations: 49.28 kB / 0.9988 GB, free: 3.934 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002089/0.7958, allocations: 1.012 MB / 0.9998 GB, free: 2.918 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003918/0.7998, allocations: 3.513 MB / 1.003 GB, free: 15.1 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001345/0.8011, allocations: 0.5221 MB / 1.004 GB, free: 14.57 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005109/0.8016, allocations: 248.7 kB / 1.004 GB, free: 14.32 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 3.946e-05/0.8017, allocations: 7.984 kB / 1.004 GB, free: 14.31 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.8017, allocations: 34.56 kB / 1.004 GB, free: 14.27 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=31): time 2.845e-06/0.8017, allocations: 0 / 1.004 GB, free: 14.27 MB / 0.7637 GB Notification: Performance of matching and sorting (n=43): time 0.006386/0.8081, allocations: 2.229 MB / 1.006 GB, free: 12 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.8082, allocations: 55.41 kB / 1.006 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007519/0.809, allocations: 0.5549 MB / 1.007 GB, free: 11.37 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 5.518e-05/0.809, allocations: 37.7 kB / 1.007 GB, free: 11.32 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002937/0.8093, allocations: 360.1 kB / 1.007 GB, free: 10.97 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/0.8095, allocations: 153.8 kB / 1.007 GB, free: 10.82 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.429e-05/0.8095, allocations: 12 kB / 1.007 GB, free: 10.8 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001938/0.8097, allocations: 366.8 kB / 1.008 GB, free: 10.44 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006665/0.8104, allocations: 276.9 kB / 1.008 GB, free: 10.16 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007405/0.8112, allocations: 385.8 kB / 1.008 GB, free: 9.746 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007571/0.8119, allocations: 309.6 kB / 1.009 GB, free: 9.445 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.812, allocations: 0 / 1.009 GB, free: 9.445 MB / 0.7637 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002637/0.8146, allocations: 0.9745 MB / 1.01 GB, free: 8.445 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001901/0.8148, allocations: 180.4 kB / 1.01 GB, free: 8.223 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.8148, allocations: 4 kB / 1.01 GB, free: 8.219 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001215/0.8161, allocations: 280.8 kB / 1.01 GB, free: 7.926 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006075/0.8167, allocations: 123.8 kB / 1.01 GB, free: 7.805 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007525/0.8242, allocations: 8.466 MB / 1.018 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006679/0.8249, allocations: 59.97 kB / 1.018 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.13e-05/0.825, allocations: 19.98 kB / 1.018 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/0.825, allocations: 4 kB / 1.019 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002308/0.8273, allocations: 1.082 MB / 1.02 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.8274, allocations: 4 kB / 1.02 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007121/0.8281, allocations: 217.2 kB / 1.02 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005842/0.8287, allocations: 135.8 kB / 1.02 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006064/0.8348, allocations: 8.168 MB / 1.028 GB, free: 3.977 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006549/0.8355, allocations: 56.08 kB / 1.028 GB, free: 3.922 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.939e-05/0.8355, allocations: 16 kB / 1.028 GB, free: 3.906 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (47): * Single equations (assignments): 41 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000528/0.8361, allocations: 316.9 kB / 1.028 GB, free: 3.586 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001952/0.8363, allocations: 71.11 kB / 1.028 GB, free: 3.516 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002021/0.8365, allocations: 86.31 kB / 1.028 GB, free: 3.43 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.8365, allocations: 4 kB / 1.028 GB, free: 3.426 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/0.8365, allocations: 0 / 1.028 GB, free: 3.426 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.8365, allocations: 3.984 kB / 1.028 GB, free: 3.422 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/0.8376, allocations: 0.6456 MB / 1.029 GB, free: 2.727 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.8376, allocations: 3.953 kB / 1.029 GB, free: 2.723 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004941/0.8381, allocations: 103.8 kB / 1.029 GB, free: 2.621 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009403/0.8391, allocations: 260.8 kB / 1.029 GB, free: 2.348 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.608e-05/0.8391, allocations: 8 kB / 1.029 GB, free: 2.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006773/0.8459, allocations: 8.412 MB / 1.038 GB, free: 9.125 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.8459, allocations: 0 / 1.038 GB, free: 9.125 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.8481, allocations: 0.9716 MB / 1.039 GB, free: 8.117 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003559/0.8485, allocations: 180.3 kB / 1.039 GB, free: 7.922 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.8487, allocations: 4 kB / 1.039 GB, free: 7.918 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00055/0.8492, allocations: 51.95 kB / 1.039 GB, free: 7.867 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.8494, allocations: 39.94 kB / 1.039 GB, free: 7.828 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.679e-05/0.8494, allocations: 15.98 kB / 1.039 GB, free: 7.812 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0006093/0.85, allocations: 395.1 kB / 1.039 GB, free: 7.434 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8501, allocations: 0 / 1.039 GB, free: 7.434 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.001335/0.8514, allocations: 300 kB / 1.039 GB, free: 7.141 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (31): * Single equations (assignments): 25 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002441/0.8538, allocations: 1.521 MB / 1.041 GB, free: 5.574 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.004408/0.8583, allocations: 2.418 MB / 1.043 GB, free: 3 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.8583, allocations: 4.125 kB / 1.043 GB, free: 2.996 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001641/0.8599, allocations: 1.015 MB / 1.044 GB, free: 1.902 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001423/0.8614, allocations: 208.8 kB / 1.045 GB, free: 1.703 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009258/0.8707, allocations: 4.353 MB / 1.049 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007223/0.8714, allocations: 0.9821 MB / 1.05 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0007127/0.8722, allocations: 149.4 kB / 1.05 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000363/0.8725, allocations: 243.3 kB / 1.05 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of SimCode: time 1.213e-06/0.8726, allocations: 0 / 1.05 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04217/0.9147, allocations: 18.4 MB / 1.068 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001922/0.915, allocations: 216.9 kB / 1.068 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.371/3.286, allocations: 0 / 1.068 GB, free: 9.516 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLine.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat does not exist to compare? outputFormat=mat