Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.298/2.298, allocations: 390.3 MB / 405.3 MB, free: 13.33 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.001196/0.001196, allocations: 180.6 kB / 498.1 MB, free: 5.586 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.578/1.578, allocations: 223.1 MB / 0.7948 GB, free: 17.86 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.0008404/0.0008402, allocations: 96.33 kB / 0.9346 GB, free: 6.145 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003427/0.0003427, allocations: 10.17 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2595, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1972/0.4567, allocations: 165.3 MB / 1.384 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/0.457, allocations: 91.94 kB / 1.384 GB, free: 12.48 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.07611/0.5332, allocations: 32.45 MB / 1.416 GB, free: 11.7 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.803e-06/0.5332, allocations: 0 / 1.416 GB, free: 11.7 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 4.345e-05/0.5333, allocations: 20 kB / 1.416 GB, free: 11.68 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001315/0.5346, allocations: 0.8534 MB / 1.417 GB, free: 10.77 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.5346, allocations: 8.031 kB / 1.417 GB, free: 10.77 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001271/0.5348, allocations: 94.5 kB / 1.417 GB, free: 10.66 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001191/0.536, allocations: 206.9 kB / 1.417 GB, free: 10.46 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007628/0.5368, allocations: 480.4 kB / 1.418 GB, free: 9.949 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.157e-05/0.5368, allocations: 36.98 kB / 1.418 GB, free: 9.914 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.768e-05/0.5369, allocations: 43.98 kB / 1.418 GB, free: 9.871 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.538, allocations: 0.935 MB / 1.419 GB, free: 8.758 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.466e-05/0.538, allocations: 11.84 kB / 1.419 GB, free: 8.746 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.726e-05/0.5381, allocations: 24 kB / 1.419 GB, free: 8.723 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.792e-05/0.5382, allocations: 52.97 kB / 1.419 GB, free: 8.668 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007669/0.5389, allocations: 0.5655 MB / 1.419 GB, free: 8.105 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004094/0.543, allocations: 5.658 MB / 1.425 GB, free: 2.051 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005934/0.5436, allocations: 454.3 kB / 1.425 GB, free: 1.598 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.5437, allocations: 11.94 kB / 1.425 GB, free: 1.586 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.5437, allocations: 38.52 kB / 1.425 GB, free: 1.539 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=32): time 2.034e-06/0.5437, allocations: 0 / 1.425 GB, free: 1.539 MB / 0.9167 GB Notification: Performance of matching and sorting (n=33): time 0.5611/1.105, allocations: 1.491 MB / 1.427 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/1.105, allocations: 58.78 kB / 1.427 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005833/1.106, allocations: 434.5 kB / 1.427 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 5.964e-05/1.106, allocations: 29.67 kB / 1.427 GB, free: 183.7 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002043/1.106, allocations: 342 kB / 1.428 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 9.941e-05/1.106, allocations: 115.5 kB / 1.428 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.18e-05/1.106, allocations: 11.5 kB / 1.428 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.000123/1.106, allocations: 367.2 kB / 1.428 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000266/1.106, allocations: 192.1 kB / 1.428 GB, free: 183.2 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003536/1.107, allocations: 402.5 kB / 1.429 GB, free: 183 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003351/1.107, allocations: 253.6 kB / 1.429 GB, free: 183 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/1.107, allocations: 2.25 kB / 1.429 GB, free: 183 MB / 0.9167 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001187/1.108, allocations: 0.7758 MB / 1.43 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/1.108, allocations: 16.48 kB / 1.43 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/1.108, allocations: 8.875 kB / 1.43 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005062/1.109, allocations: 145.3 kB / 1.43 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004432/1.109, allocations: 115.9 kB / 1.43 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002533/1.112, allocations: 4.05 MB / 1.434 GB, free: 179.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000397/1.112, allocations: 33.84 kB / 1.434 GB, free: 179.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.94e-05/1.112, allocations: 30.23 kB / 1.434 GB, free: 179.1 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002711/1.113, allocations: 208.5 kB / 1.434 GB, free: 179 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.214e-05/1.113, allocations: 66.16 kB / 1.434 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001053/1.114, allocations: 0.5966 MB / 1.435 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/1.114, allocations: 5 kB / 1.435 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/1.114, allocations: 5.891 kB / 1.435 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/1.114, allocations: 5.688 kB / 1.435 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001861/1.116, allocations: 1.26 MB / 1.436 GB, free: 178.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/1.116, allocations: 5.172 kB / 1.436 GB, free: 178.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002501/1.116, allocations: 59.53 kB / 1.436 GB, free: 178.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004034/1.116, allocations: 139.2 kB / 1.436 GB, free: 178.4 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.713e-05/1.116, allocations: 7.922 kB / 1.436 GB, free: 178.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002369/1.119, allocations: 4.049 MB / 1.44 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/1.119, allocations: 2.562 kB / 1.44 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/1.12, allocations: 0.7886 MB / 1.441 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002228/1.12, allocations: 167.5 kB / 1.441 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.714e-05/1.12, allocations: 8.219 kB / 1.441 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/1.12, allocations: 22.03 kB / 1.441 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.473e-05/1.12, allocations: 39.45 kB / 1.441 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/1.12, allocations: 11.5 kB / 1.441 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0003668/1.121, allocations: 326.9 kB / 1.442 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.1e-07/1.121, allocations: 1.5 kB / 1.442 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0006549/1.121, allocations: 146 kB / 1.442 GB, free: 174.1 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001264/1.123, allocations: 1.833 MB / 1.444 GB, free: 172.7 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001317/1.124, allocations: 1.019 MB / 1.445 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/1.124, allocations: 0 / 1.445 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0006985/1.125, allocations: 0.7294 MB / 1.445 GB, free: 171.6 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007989/1.126, allocations: 180.1 kB / 1.445 GB, free: 171.6 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005332/1.131, allocations: 8.215 MB / 1.453 GB, free: 165.4 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004355/1.131, allocations: 0.9209 MB / 1.454 GB, free: 164.7 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0004299/1.132, allocations: 113.5 kB / 1.454 GB, free: 164.7 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002343/1.132, allocations: 193.2 kB / 1.455 GB, free: 164.7 MB / 0.9167 GB Notification: Performance of SimCode: time 9.01e-07/1.132, allocations: 3.938 kB / 1.455 GB, free: 164.7 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03588/1.168, allocations: 12.08 MB / 1.466 GB, free: 164 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001612/1.168, allocations: 215.7 kB / 1.467 GB, free: 163.8 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.253/3.422, allocations: 4.75 kB / 1.467 GB, free: 163.8 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat does not exist to compare? outputFormat=mat