Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 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.DCLine,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLine,fileNamePrefix="Buildings_9_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.001203/0.001203, allocations: 100.1 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.001336/0.001336, allocations: 177.3 kB / 15.95 MB, free: 216 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.379/1.379, allocations: 223.2 MB / 239.9 MB, free: 5.461 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.507/2.507, allocations: 390.3 MB / 0.6653 GB, free: 3.023 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003494/0.0003494, allocations: 16 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8262/0.8265, allocations: 142.3 MB / 0.9536 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLine): time 0.006708/0.8333, allocations: 5.338 MB / 0.9588 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.006663/0.84, allocations: 4.118 MB / 0.9628 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008811/0.841, allocations: 24.53 kB / 0.9628 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005729/0.8416, allocations: 139.3 kB / 0.963 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.002378/0.8439, allocations: 0.6082 MB / 0.9636 GB, free: 208 kB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008359/0.8448, allocations: 248.6 kB / 0.9638 GB, free: 16 kB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001796/0.8466, allocations: 0.6687 MB / 0.9645 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000862/0.8475, allocations: 492.3 kB / 0.9649 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007405/0.8482, allocations: 343.7 kB / 0.9653 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006517/0.8489, allocations: 365.6 kB / 0.9656 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.004e-05/0.849, allocations: 33.88 kB / 0.9656 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005363/0.8495, allocations: 138.3 kB / 0.9658 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002052/0.8497, allocations: 184.3 kB / 0.966 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002335/0.85, allocations: 171.6 kB / 0.9661 GB, free: 14.58 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001019/0.851, allocations: 0.7968 MB / 0.9669 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.851, allocations: 0 / 0.9669 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.227e-06/0.851, allocations: 1.344 kB / 0.9669 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.263e-05/0.851, allocations: 4 kB / 0.9669 GB, free: 14.02 MB / 0.7325 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.002195/0.8532, allocations: 0.9779 MB / 0.9679 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 7.325e-05/0.8533, allocations: 9.812 kB / 0.9679 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001709/0.8535, allocations: 100.1 kB / 0.968 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00344/0.8569, allocations: 0.6642 MB / 0.9686 GB, free: 12.86 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001227/0.8582, allocations: 0.5211 MB / 0.9691 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.246e-05/0.8583, allocations: 37.88 kB / 0.9692 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.8584, allocations: 49.84 kB / 0.9692 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002351/0.8607, allocations: 1.019 MB / 0.9702 GB, free: 11.76 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.8608, allocations: 4 kB / 0.9702 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.613e-05/0.8608, allocations: 22.78 kB / 0.9702 GB, free: 11.74 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.413e-05/0.8609, allocations: 47.12 kB / 0.9703 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002539/0.8635, allocations: 1.015 MB / 0.9713 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00517/0.8687, allocations: 3.519 MB / 0.9747 GB, free: 8.023 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001599/0.8703, allocations: 0.5255 MB / 0.9752 GB, free: 7.766 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.006e-05/0.8704, allocations: 3.406 kB / 0.9752 GB, free: 7.766 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/0.8704, allocations: 37.22 kB / 0.9752 GB, free: 7.723 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=31): time 2.545e-06/0.8704, allocations: 0 / 0.9752 GB, free: 7.723 MB / 0.7325 GB Notification: Performance of matching and sorting (n=43): time 0.007681/0.8781, allocations: 2.227 MB / 0.9774 GB, free: 6.574 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.8782, allocations: 55.62 kB / 0.9775 GB, free: 6.512 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008457/0.879, allocations: 0.5575 MB / 0.978 GB, free: 6.18 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.459e-05/0.8791, allocations: 36.02 kB / 0.9781 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000291/0.8794, allocations: 359.3 kB / 0.9784 GB, free: 5.824 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.8796, allocations: 147.7 kB / 0.9785 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.255e-05/0.8796, allocations: 10.91 kB / 0.9785 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000178/0.8798, allocations: 368.3 kB / 0.9789 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007094/0.8805, allocations: 273.7 kB / 0.9792 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007955/0.8813, allocations: 388 kB / 0.9795 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007234/0.882, allocations: 302.5 kB / 0.9798 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.8821, allocations: 3.984 kB / 0.9798 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002524/0.8846, allocations: 0.9783 MB / 0.9808 GB, free: 3.668 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006554/0.8853, allocations: 1.238 MB / 0.982 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.8853, allocations: 4 kB / 0.982 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001221/0.8865, allocations: 268.9 kB / 0.9822 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006624/0.8872, allocations: 123.8 kB / 0.9824 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008402/0.8956, allocations: 8.57 MB / 0.9907 GB, free: 8.578 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000979/0.8966, allocations: 51.95 kB / 0.9908 GB, free: 8.527 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/0.8968, allocations: 23.94 kB / 0.9908 GB, free: 8.504 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.8968, allocations: 9.469 kB / 0.9908 GB, free: 8.496 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002802/0.8996, allocations: 1.07 MB / 0.9919 GB, free: 7.352 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.8997, allocations: 4 kB / 0.9919 GB, free: 7.348 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000839/0.9005, allocations: 221.2 kB / 0.9921 GB, free: 7.113 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006807/0.9012, allocations: 131.8 kB / 0.9922 GB, free: 6.984 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007894/0.9091, allocations: 8.227 MB / 1 GB, free: 13.96 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009282/0.9101, allocations: 51.95 kB / 1 GB, free: 13.91 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.415e-05/0.9102, allocations: 12 kB / 1 GB, free: 13.9 MB / 0.7637 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.0006081/0.9108, allocations: 324.9 kB / 1.001 GB, free: 13.57 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000228/0.9111, allocations: 75.14 kB / 1.001 GB, free: 13.5 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002191/0.9113, allocations: 78.38 kB / 1.001 GB, free: 13.41 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.9113, allocations: 4 kB / 1.001 GB, free: 13.41 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.706e-05/0.9113, allocations: 4 kB / 1.001 GB, free: 13.41 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.9113, allocations: 3.984 kB / 1.001 GB, free: 13.4 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.9125, allocations: 0.6533 MB / 1.001 GB, free: 12.7 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.9125, allocations: 0 / 1.001 GB, free: 12.7 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005295/0.9131, allocations: 103.8 kB / 1.001 GB, free: 12.6 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001054/0.9141, allocations: 256.9 kB / 1.002 GB, free: 12.33 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.894e-05/0.9142, allocations: 11.98 kB / 1.002 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007835/0.922, allocations: 8.503 MB / 1.01 GB, free: 3.012 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.9221, allocations: 0 / 1.01 GB, free: 3.012 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002547/0.9246, allocations: 0.96 MB / 1.011 GB, free: 2.016 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005137/0.9252, allocations: 180.3 kB / 1.011 GB, free: 1.82 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002209/0.9254, allocations: 16 kB / 1.011 GB, free: 1.805 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006342/0.9261, allocations: 47.95 kB / 1.011 GB, free: 1.758 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.9262, allocations: 43.83 kB / 1.011 GB, free: 1.715 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.985e-05/0.9263, allocations: 16 kB / 1.011 GB, free: 1.699 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0006075/0.9269, allocations: 399.1 kB / 1.012 GB, free: 1.316 MB / 0.7637 GB Notification: Performance of sort global known variables: time 4.71e-07/0.9269, allocations: 0 / 1.012 GB, free: 1.316 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001556/0.9285, allocations: 300 kB / 1.012 GB, free: 1.023 MB / 0.7637 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.002889/0.9314, allocations: 1.513 MB / 1.013 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.004779/0.9362, allocations: 2.431 MB / 1.016 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.9362, allocations: 0 / 1.016 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001757/0.938, allocations: 1.023 MB / 1.017 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001496/0.9395, allocations: 200.5 kB / 1.017 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/0.9504, allocations: 6.283 MB / 1.023 GB, free: 5.172 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008326/0.9513, allocations: 0.9937 MB / 1.024 GB, free: 4.152 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0007313/0.952, allocations: 149.4 kB / 1.024 GB, free: 4.004 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003944/0.9524, allocations: 239.3 kB / 1.024 GB, free: 3.77 MB / 0.7794 GB Notification: Performance of SimCode: time 1.292e-06/0.9524, allocations: 4 kB / 1.024 GB, free: 3.766 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04458/0.997, allocations: 18.37 MB / 1.042 GB, free: 1.695 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003019/0.9974, allocations: 208.6 kB / 1.043 GB, free: 1.453 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.214/3.211, allocations: 0 / 1.043 GB, free: 1.453 MB / 0.795 GB (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_DCLine.fmu > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine_res.mat does not exist to compare? outputFormat=mat