Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.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.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource",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.0009038/0.0009038, allocations: 100.2 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.00107/0.001071, 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 1.391/1.391, allocations: 223.2 MB / 239.9 MB, free: 5.234 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.473/2.473, allocations: 390.3 MB / 0.6653 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005656/0.0005657, allocations: 8 kB / 0.8146 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8155/0.8161, allocations: 142.3 MB / 0.9536 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.003643/0.8198, allocations: 2.717 MB / 0.9562 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001799/0.8216, allocations: 1.248 MB / 0.9575 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.8218, allocations: 7.594 kB / 0.9575 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.8219, allocations: 39.28 kB / 0.9575 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00033/0.8223, allocations: 111.9 kB / 0.9576 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003094/0.8226, allocations: 113.9 kB / 0.9577 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002589/0.8229, allocations: 187.5 kB / 0.9579 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003156/0.8232, allocations: 226.6 kB / 0.9581 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001704/0.8234, allocations: 92.88 kB / 0.9582 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002412/0.8236, allocations: 99.12 kB / 0.9583 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.926e-05/0.8237, allocations: 15.03 kB / 0.9583 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001982/0.8239, allocations: 78.64 kB / 0.9584 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.648e-05/0.8239, allocations: 70.48 kB / 0.9585 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.539e-05/0.824, allocations: 66.83 kB / 0.9585 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002875/0.8243, allocations: 259.1 kB / 0.9588 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.8243, allocations: 0 / 0.9588 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.753e-06/0.8243, allocations: 0 / 0.9588 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.105e-06/0.8243, allocations: 0 / 0.9588 GB, free: 4.102 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007498/0.8251, allocations: 0.5094 MB / 0.9593 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.8251, allocations: 13.61 kB / 0.9593 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.047e-05/0.8252, allocations: 54.8 kB / 0.9593 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000625/0.8258, allocations: 90.45 kB / 0.9594 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002792/0.8261, allocations: 252.4 kB / 0.9597 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.8262, allocations: 15.31 kB / 0.9597 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.254e-05/0.8262, allocations: 21.75 kB / 0.9597 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004574/0.8267, allocations: 305.2 kB / 0.96 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.8267, allocations: 7.953 kB / 0.96 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.655e-05/0.8267, allocations: 10.73 kB / 0.96 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.778e-05/0.8268, allocations: 26.17 kB / 0.96 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003641/0.8271, allocations: 212.7 kB / 0.9602 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001327/0.8285, allocations: 1.493 MB / 0.9617 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004043/0.8289, allocations: 212.4 kB / 0.9619 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.8289, allocations: 1.188 kB / 0.9619 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.839e-05/0.8289, allocations: 39.67 kB / 0.9619 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.8289, allocations: 0 / 0.9619 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0005396/0.8295, allocations: 273.7 kB / 0.9622 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.305e-05/0.8295, allocations: 53.34 kB / 0.9622 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001995/0.8297, allocations: 203 kB / 0.9624 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.8297, allocations: 26.64 kB / 0.9625 GB, free: 0.7734 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.133e-05/0.8298, allocations: 176.6 kB / 0.9626 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.105e-05/0.8299, allocations: 23.81 kB / 0.9626 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.446e-06/0.8299, allocations: 5.031 kB / 0.9627 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.109e-05/0.8299, allocations: 334.8 kB / 0.963 GB, free: 260 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.592e-05/0.83, allocations: 40.42 kB / 0.963 GB, free: 244 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.8302, allocations: 113.6 kB / 0.9631 GB, free: 132 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000119/0.8303, allocations: 64.33 kB / 0.9632 GB, free: 100 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.8303, allocations: 1.188 kB / 0.9632 GB, free: 100 kB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003808/0.8307, allocations: 222.2 kB / 0.9634 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.8307, allocations: 6.5 kB / 0.9634 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.8307, allocations: 2.594 kB / 0.9634 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001623/0.8309, allocations: 30.09 kB / 0.9634 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001425/0.831, allocations: 37.73 kB / 0.9635 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00121/0.8323, allocations: 1.329 MB / 0.9648 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001521/0.8324, allocations: 23.05 kB / 0.9648 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.8325, allocations: 10.69 kB / 0.9648 GB, free: 14.55 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (18): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001504/0.8326, allocations: 146.1 kB / 0.9649 GB, free: 14.42 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.016e-05/0.8327, allocations: 15.84 kB / 0.9649 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.913e-05/0.8327, allocations: 22.02 kB / 0.965 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.8327, allocations: 5.031 kB / 0.965 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.8327, allocations: 1.062 kB / 0.965 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.8327, allocations: 0 / 0.965 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007663/0.8335, allocations: 492.4 kB / 0.9654 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.8335, allocations: 1.344 kB / 0.9654 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.285e-05/0.8336, allocations: 13.7 kB / 0.9655 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.496e-05/0.8337, allocations: 27.69 kB / 0.9655 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.8337, allocations: 3.953 kB / 0.9655 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001164/0.8349, allocations: 1.338 MB / 0.9668 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.8349, allocations: 0 / 0.9668 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003401/0.8352, allocations: 241.6 kB / 0.967 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.026e-05/0.8354, allocations: 109 kB / 0.9671 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.8354, allocations: 0 / 0.9671 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.8355, allocations: 6.844 kB / 0.9671 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.429e-05/0.8356, allocations: 6.203 kB / 0.9671 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.839e-06/0.8356, allocations: 7.844 kB / 0.9672 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002028/0.8358, allocations: 143.3 kB / 0.9673 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8358, allocations: 0 / 0.9673 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003679/0.8362, allocations: 55.25 kB / 0.9673 GB, free: 12.11 MB / 0.7325 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 (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000657/0.8368, allocations: 0.7749 MB / 0.9681 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004368/0.8373, allocations: 235.5 kB / 0.9683 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.8373, allocations: 0 / 0.9683 GB, free: 11.22 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002447/0.8375, allocations: 163.3 kB / 0.9685 GB, free: 11.08 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.8379, allocations: 47.2 kB / 0.9685 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002343/0.8402, allocations: 2.501 MB / 0.971 GB, free: 8.832 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000608/0.8408, allocations: 0.7569 MB / 0.9717 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001226/0.841, allocations: 23.47 kB / 0.9717 GB, free: 8.086 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.8411, allocations: 63.44 kB / 0.9718 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of SimCode: time 2.8e-07/0.8411, allocations: 4 kB / 0.9718 GB, free: 8.027 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01639/0.8575, allocations: 3.599 MB / 0.9753 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/0.8577, allocations: 203.1 kB / 0.9755 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.72/2.578, allocations: 1.547 kB / 0.9755 GB, free: 6.105 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource.fmu > Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat does not exist to compare? outputFormat=mat