Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.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.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLines",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.001283/0.001283, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001552/0.001552, allocations: 172.7 kB / 15.95 MB, free: 208 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.512/1.512, allocations: 223.3 MB / 240 MB, free: 5.43 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.689/2.689, allocations: 390.4 MB / 0.6655 GB, free: 3 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003616/0.0003617, allocations: 8 kB / 0.8149 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8429/0.8433, allocations: 142.3 MB / 0.9539 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.02095/0.8643, allocations: 20.41 MB / 0.9738 GB, free: 8.461 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02703/0.8914, allocations: 16.39 MB / 0.9898 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004181/0.8956, allocations: 99.44 kB / 0.9899 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002627/0.8983, allocations: 0.5658 MB / 0.9904 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.01115/0.9094, allocations: 2.86 MB / 0.9932 GB, free: 7.723 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004139/0.9136, allocations: 0.9607 MB / 0.9942 GB, free: 6.766 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.009592/0.9232, allocations: 5.772 MB / 0.9998 GB, free: 0.9766 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004193/0.9274, allocations: 2.024 MB / 1.002 GB, free: 14.89 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004061/0.9315, allocations: 1.867 MB / 1.004 GB, free: 13.01 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004621/0.9362, allocations: 2.168 MB / 1.006 GB, free: 10.84 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0009068/0.9371, allocations: 160 kB / 1.006 GB, free: 10.68 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002287/0.9394, allocations: 0.4916 MB / 1.006 GB, free: 10.19 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001175/0.9406, allocations: 0.9302 MB / 1.007 GB, free: 9.254 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001607/0.9422, allocations: 0.6873 MB / 1.008 GB, free: 8.559 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.005344/0.9476, allocations: 3.83 MB / 1.012 GB, free: 4.719 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.9476, allocations: 0 / 1.012 GB, free: 4.719 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.936e-06/0.9476, allocations: 0 / 1.012 GB, free: 4.719 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.000145/0.9478, allocations: 0 / 1.012 GB, free: 4.719 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.007525/0.9553, allocations: 3.873 MB / 1.015 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.9554, allocations: 8.031 kB / 1.015 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000676/0.9561, allocations: 358.1 kB / 1.016 GB, free: 376 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0149/0.971, allocations: 3.358 MB / 1.019 GB, free: 13 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006066/0.9771, allocations: 1.964 MB / 1.021 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001716/0.9773, allocations: 176.7 kB / 1.021 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000639/0.978, allocations: 232 kB / 1.021 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01067/0.9886, allocations: 4.732 MB / 1.026 GB, free: 5.688 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.612e-05/0.9887, allocations: 4 kB / 1.026 GB, free: 5.684 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003185/0.9891, allocations: 103.9 kB / 1.026 GB, free: 5.582 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002103/0.9893, allocations: 172.8 kB / 1.026 GB, free: 5.41 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01281/1.002, allocations: 5.222 MB / 1.031 GB, free: 176 kB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01982/1.022, allocations: 14.11 MB / 1.045 GB, free: 0.8945 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01066/1.033, allocations: 3.853 MB / 1.049 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003539/1.036, allocations: 1.51 MB / 1.05 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001419/1.036, allocations: 21.3 kB / 1.05 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003986/1.04, allocations: 1.829 MB / 1.052 GB, free: 9.598 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=163): time 4.008e-06/1.04, allocations: 0 / 1.052 GB, free: 9.598 MB / 0.8106 GB Notification: Performance of matching and sorting (n=250): time 0.1142/1.155, allocations: 33.39 MB / 1.085 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002259/1.155, allocations: 0.4928 MB / 1.085 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003192/1.158, allocations: 2.269 MB / 1.088 GB, free: 5.102 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0004451/1.159, allocations: 77.7 kB / 1.088 GB, free: 5.02 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.001117/1.16, allocations: 1.434 MB / 1.089 GB, free: 3.57 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008082/1.16, allocations: 0.8202 MB / 1.09 GB, free: 2.738 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001728/1.161, allocations: 44 kB / 1.09 GB, free: 2.695 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001636/1.161, allocations: 398.7 kB / 1.09 GB, free: 2.301 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004506/1.165, allocations: 1.921 MB / 1.092 GB, free: 384 kB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004798/1.17, allocations: 2.22 MB / 1.094 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004602/1.175, allocations: 2.128 MB / 1.096 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/1.175, allocations: 0 / 1.096 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01459/1.189, allocations: 6.181 MB / 1.102 GB, free: 5.617 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002531/1.19, allocations: 395.6 kB / 1.103 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/1.19, allocations: 7.984 kB / 1.103 GB, free: 5.105 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006129/1.196, allocations: 1.852 MB / 1.105 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002969/1.199, allocations: 0.5851 MB / 1.105 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0221/1.221, allocations: 14.15 MB / 1.119 GB, free: 4.273 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003677/1.225, allocations: 403.6 kB / 1.119 GB, free: 3.879 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003865/1.225, allocations: 87.97 kB / 1.119 GB, free: 3.793 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/1.225, allocations: 9.406 kB / 1.119 GB, free: 3.785 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01396/1.239, allocations: 5.746 MB / 1.125 GB, free: 13.96 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.348e-05/1.239, allocations: 15.94 kB / 1.125 GB, free: 13.94 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004938/1.244, allocations: 1.821 MB / 1.127 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002992/1.247, allocations: 0.6085 MB / 1.127 GB, free: 11.5 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0203/1.267, allocations: 13.44 MB / 1.141 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003767/1.271, allocations: 407.5 kB / 1.141 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004026/1.272, allocations: 87.97 kB / 1.141 GB, free: 13.3 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.varLoad1.T_start,varLoad1.T_start,$PRE.varLoad1.count,varLoad1.count,$PRE.varLoad2.T_start,varLoad2.T_start,$PRE.varLoad2.count,varLoad2.count,$PRE.varLoad3.T_start,varLoad3.T_start,$PRE.varLoad3.count,varLoad3.count,$PRE.varLoad4.T_start,varLoad4.T_start,$PRE.varLoad4.count,varLoad4.count,$PRE.varLoad5.T_start,varLoad5.T_start,$PRE.varLoad5.count,varLoad5.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 5 * 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 {(10,45.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of prepare postOptimizeDAE: time 0.001612/1.273, allocations: 0.7796 MB / 1.142 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006332/1.274, allocations: 332.1 kB / 1.142 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008344/1.275, allocations: 396.1 kB / 1.142 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/1.275, allocations: 27.94 kB / 1.143 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.183e-05/1.275, allocations: 15.95 kB / 1.143 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.958e-05/1.275, allocations: 11.95 kB / 1.143 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004208/1.279, allocations: 3.165 MB / 1.146 GB, free: 8.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-05/1.279, allocations: 0 / 1.146 GB, free: 8.52 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002543/1.282, allocations: 0.5266 MB / 1.146 GB, free: 7.992 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005848/1.288, allocations: 1.707 MB / 1.148 GB, free: 6.277 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000335/1.288, allocations: 51.97 kB / 1.148 GB, free: 6.227 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02151/1.309, allocations: 13.94 MB / 1.161 GB, free: 8.016 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.31, allocations: 3.938 kB / 1.161 GB, free: 8.012 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01449/1.324, allocations: 5.787 MB / 1.167 GB, free: 2.188 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002144/1.326, allocations: 0.6687 MB / 1.168 GB, free: 1.496 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009553/1.327, allocations: 48 kB / 1.168 GB, free: 1.449 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003018/1.33, allocations: 395.6 kB / 1.168 GB, free: 1.062 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009151/1.331, allocations: 310.6 kB / 1.168 GB, free: 0.7617 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001894/1.331, allocations: 67.97 kB / 1.169 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.002511/1.334, allocations: 1.509 MB / 1.17 GB, free: 15.19 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.01e-07/1.334, allocations: 0 / 1.17 GB, free: 15.19 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.005883/1.34, allocations: 1.625 MB / 1.172 GB, free: 13.56 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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 {(10,60.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.01483/1.355, allocations: 6.419 MB / 1.178 GB, free: 7.098 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.02364/1.378, allocations: 10.07 MB / 1.188 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/1.378, allocations: 4 kB / 1.188 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.009834/1.388, allocations: 3.492 MB / 1.191 GB, free: 9.316 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006203/1.395, allocations: 1.045 MB / 1.192 GB, free: 8.281 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06077/1.455, allocations: 25.98 MB / 1.218 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002838/1.458, allocations: 2.305 MB / 1.22 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.003898/1.462, allocations: 0.6348 MB / 1.22 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002583/1.465, allocations: 1.331 MB / 1.222 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of SimCode: time 2.434e-06/1.465, allocations: 0 / 1.222 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7496/2.214, allocations: 100.5 MB / 1.32 GB, free: 248 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001436/2.215, allocations: 218.3 kB / 1.32 GB, free: 247.7 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.035/7.249, allocations: 0 / 1.32 GB, free: 247.7 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLines_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLines.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines_res.mat does not exist to compare? outputFormat=mat