Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.409/2.409, allocations: 393.5 MB / 408.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 176 kB / 0.4901 GB, free: 2.277 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.612/1.612, allocations: 223.1 MB / 0.7992 GB, free: 14.78 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009403/0.0009403, allocations: 109.9 kB / 0.9396 GB, free: 1.949 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003634, allocations: 6.969 kB / 1.09 GB, free: 216.8 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3159, allocations: 143 MB / 1.229 GB, free: 105.9 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2244/0.5404, allocations: 177.6 MB / 1.403 GB, free: 8.062 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/0.5407, allocations: 91.95 kB / 1.403 GB, free: 7.973 MB / 0.9011 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.03398/0.5747, allocations: 15.36 MB / 1.418 GB, free: 8.391 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.843e-06/0.5747, allocations: 0 / 1.418 GB, free: 8.391 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 1.842e-05/0.5748, allocations: 11.98 kB / 1.418 GB, free: 8.379 MB / 0.9167 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.0007819/0.5756, allocations: 0.5142 MB / 1.418 GB, free: 7.82 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.5756, allocations: 8.562 kB / 1.418 GB, free: 7.812 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.287e-05/0.5757, allocations: 58.55 kB / 1.418 GB, free: 7.746 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006214/0.5763, allocations: 87.64 kB / 1.418 GB, free: 7.66 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003362/0.5767, allocations: 251.5 kB / 1.419 GB, free: 7.375 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.5767, allocations: 12.44 kB / 1.419 GB, free: 7.363 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.714e-05/0.5767, allocations: 20 kB / 1.419 GB, free: 7.344 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004786/0.5772, allocations: 312.3 kB / 1.419 GB, free: 7.012 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.5772, allocations: 0 / 1.419 GB, free: 7.012 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.766e-05/0.5773, allocations: 8 kB / 1.419 GB, free: 7.004 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.355e-05/0.5773, allocations: 20.41 kB / 1.419 GB, free: 6.984 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003618/0.5777, allocations: 209.6 kB / 1.419 GB, free: 6.781 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001482/0.5792, allocations: 1.494 MB / 1.421 GB, free: 5.121 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004077/0.5796, allocations: 199.7 kB / 1.421 GB, free: 4.898 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.5796, allocations: 0 / 1.421 GB, free: 4.898 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.5797, allocations: 38.56 kB / 1.421 GB, free: 4.852 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=8): time 1.293e-06/0.5797, allocations: 0 / 1.421 GB, free: 4.852 MB / 0.9167 GB Notification: Performance of matching and sorting (n=8): time 0.0005458/0.5802, allocations: 263.3 kB / 1.421 GB, free: 4.566 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.5803, allocations: 55.36 kB / 1.421 GB, free: 4.5 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.5804, allocations: 183.5 kB / 1.421 GB, free: 4.309 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.5805, allocations: 29.64 kB / 1.421 GB, free: 4.273 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 9.559e-05/0.5806, allocations: 179.7 kB / 1.422 GB, free: 4.094 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 3.143e-05/0.5806, allocations: 35.69 kB / 1.422 GB, free: 4.059 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.703e-06/0.5806, allocations: 0 / 1.422 GB, free: 4.059 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.5807, allocations: 326.8 kB / 1.422 GB, free: 3.73 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.623e-05/0.5808, allocations: 47.91 kB / 1.422 GB, free: 3.684 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.581, allocations: 108.5 kB / 1.422 GB, free: 3.547 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001164/0.5811, allocations: 59.98 kB / 1.422 GB, free: 3.488 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.5811, allocations: 4 kB / 1.422 GB, free: 3.484 MB / 0.9167 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003469/0.5815, allocations: 202.3 kB / 1.422 GB, free: 3.277 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.5815, allocations: 13.28 kB / 1.422 GB, free: 3.266 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.5815, allocations: 0 / 1.422 GB, free: 3.266 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001551/0.5817, allocations: 32.78 kB / 1.422 GB, free: 3.23 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.5818, allocations: 31.98 kB / 1.422 GB, free: 3.199 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/0.5828, allocations: 1.323 MB / 1.424 GB, free: 1.738 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000144/0.583, allocations: 27.77 kB / 1.424 GB, free: 1.711 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.507e-05/0.583, allocations: 8 kB / 1.424 GB, free: 1.703 MB / 0.9167 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.0001555/0.5832, allocations: 151.6 kB / 1.424 GB, free: 1.547 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.164e-05/0.5832, allocations: 19.77 kB / 1.424 GB, free: 1.527 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.492e-05/0.5833, allocations: 21.39 kB / 1.424 GB, free: 1.504 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.5833, allocations: 0 / 1.424 GB, free: 1.504 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.5833, allocations: 4 kB / 1.424 GB, free: 1.5 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.5833, allocations: 0 / 1.424 GB, free: 1.5 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005931/0.5839, allocations: 487.2 kB / 1.424 GB, free: 0.9648 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.5839, allocations: 0 / 1.424 GB, free: 0.9648 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.528e-05/0.584, allocations: 8 kB / 1.424 GB, free: 0.957 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.713e-05/0.5841, allocations: 24.84 kB / 1.424 GB, free: 0.9297 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.5841, allocations: 0 / 1.424 GB, free: 0.9297 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7532/1.337, allocations: 1.315 MB / 1.426 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.337, allocations: 4.75 kB / 1.426 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003767/1.338, allocations: 235.9 kB / 1.426 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 9.714e-05/1.338, allocations: 100.3 kB / 1.426 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.094e-05/1.338, allocations: 1.938 kB / 1.426 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/1.338, allocations: 10.81 kB / 1.426 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.37e-05/1.338, allocations: 5.594 kB / 1.426 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/1.338, allocations: 8.266 kB / 1.426 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001549/1.338, allocations: 147.4 kB / 1.426 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.1e-07/1.338, allocations: 5.594 kB / 1.426 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0004015/1.339, allocations: 53.58 kB / 1.426 GB, free: 183.6 MB / 0.9167 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.0005588/1.339, allocations: 0.7616 MB / 1.427 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0004926/1.34, allocations: 235.8 kB / 1.427 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/1.34, allocations: 0 / 1.427 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0001886/1.34, allocations: 164.8 kB / 1.427 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003226/1.34, allocations: 34.89 kB / 1.427 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/1.342, allocations: 2.481 MB / 1.43 GB, free: 180.8 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002361/1.343, allocations: 0.7628 MB / 1.431 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0001163/1.343, allocations: 21.89 kB / 1.431 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.487e-05/1.343, allocations: 60.88 kB / 1.431 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of SimCode: time 7.22e-07/1.343, allocations: 0 / 1.431 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0189/1.362, allocations: 3.582 MB / 1.434 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/1.362, allocations: 204.7 kB / 1.434 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.916/3.278, allocations: 1.125 kB / 1.434 GB, free: 179.7 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Sources_Examples_VoltageSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Sources_Examples_VoltageSource.fmu > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat does not exist to compare? outputFormat=mat