Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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.VariableImpedance,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",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.236/2.236, allocations: 387.4 MB / 394.9 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.001068/0.001068, allocations: 184.8 kB / 487.4 MB, free: 5.062 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.543/1.543, allocations: 221.5 MB / 0.7824 GB, free: 0.9922 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008825/0.0008824, allocations: 91.86 kB / 0.9219 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 3.706e-05/3.71e-05, allocations: 7.984 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2787, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9474/1.226, allocations: 165 MB / 1.367 GB, free: 17.88 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002688/1.227, allocations: 98.12 kB / 1.367 GB, free: 17.88 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04706/1.274, allocations: 22.16 MB / 1.389 GB, free: 27.59 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.864e-06/1.274, allocations: 0 / 1.389 GB, free: 27.59 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.728e-05/1.274, allocations: 11.69 kB / 1.389 GB, free: 27.59 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0009393/1.275, allocations: 0.6507 MB / 1.39 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/1.275, allocations: 11.66 kB / 1.39 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008469/1.276, allocations: 135.8 kB / 1.39 GB, free: 27 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004569/1.276, allocations: 380.4 kB / 1.39 GB, free: 26.7 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/1.276, allocations: 15.19 kB / 1.39 GB, free: 26.69 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.07e-05/1.276, allocations: 19.05 kB / 1.39 GB, free: 26.69 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004019/1.277, allocations: 281.1 kB / 1.39 GB, free: 26.66 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000534/1.277, allocations: 0.5353 MB / 1.391 GB, free: 26.3 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/1.277, allocations: 0 / 1.391 GB, free: 26.3 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.385e-05/1.277, allocations: 7.688 kB / 1.391 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-05/1.277, allocations: 35.14 kB / 1.391 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002387/1.28, allocations: 3.283 MB / 1.394 GB, free: 23.42 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004856/1.28, allocations: 296.9 kB / 1.394 GB, free: 23.36 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/1.28, allocations: 161.2 kB / 1.395 GB, free: 23.33 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/1.28, allocations: 7.984 kB / 1.395 GB, free: 23.32 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.022e-05/1.28, allocations: 41.86 kB / 1.395 GB, free: 23.28 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=26): time 1.633e-06/1.28, allocations: 0 / 1.395 GB, free: 23.28 MB / 0.8386 GB Notification: Performance of matching and sorting (n=27): time 0.0009424/1.281, allocations: 0.5645 MB / 1.395 GB, free: 23.07 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.016e-05/1.281, allocations: 55.61 kB / 1.395 GB, free: 23 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002254/1.282, allocations: 255.9 kB / 1.396 GB, free: 22.87 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/1.282, allocations: 25.7 kB / 1.396 GB, free: 22.84 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/1.282, allocations: 241.1 kB / 1.396 GB, free: 22.67 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.45e-05/1.282, allocations: 92.62 kB / 1.396 GB, free: 22.6 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.855e-05/1.282, allocations: 0 / 1.396 GB, free: 22.6 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001451/1.282, allocations: 348.7 kB / 1.396 GB, free: 22.27 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/1.282, allocations: 122.8 kB / 1.396 GB, free: 22.26 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001923/1.282, allocations: 243.7 kB / 1.397 GB, free: 22.09 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001938/1.283, allocations: 170.8 kB / 1.397 GB, free: 22.05 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/1.283, allocations: 0 / 1.397 GB, free: 22.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005964/1.283, allocations: 475.9 kB / 1.397 GB, free: 21.9 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/1.283, allocations: 12.17 kB / 1.397 GB, free: 21.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/1.283, allocations: 7.844 kB / 1.397 GB, free: 21.89 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002564/1.283, allocations: 82.86 kB / 1.397 GB, free: 21.85 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002979/1.284, allocations: 81.28 kB / 1.397 GB, free: 21.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.228e-06/1.284, allocations: 11.62 kB / 1.397 GB, free: 21.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/1.284, allocations: 19.56 kB / 1.397 GB, free: 21.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/1.284, allocations: 23.16 kB / 1.397 GB, free: 21.82 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001131/1.284, allocations: 117.6 kB / 1.397 GB, free: 21.7 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004985/1.285, allocations: 378 kB / 1.398 GB, free: 21.57 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.038e-05/1.285, allocations: 37.88 kB / 1.398 GB, free: 21.55 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005733/1.285, allocations: 417.6 kB / 1.398 GB, free: 21.39 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/1.285, allocations: 3.984 kB / 1.398 GB, free: 21.39 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/1.285, allocations: 7.844 kB / 1.398 GB, free: 21.39 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/1.285, allocations: 0 / 1.398 GB, free: 21.39 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/1.286, allocations: 0.8548 MB / 1.399 GB, free: 20.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/1.286, allocations: 4.094 kB / 1.399 GB, free: 20.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002245/1.287, allocations: 57.64 kB / 1.399 GB, free: 20.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001912/1.287, allocations: 76.05 kB / 1.399 GB, free: 20.87 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/1.287, allocations: 0 / 1.399 GB, free: 20.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.965e-06/1.287, allocations: 11.75 kB / 1.399 GB, free: 20.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.287, allocations: 3.938 kB / 1.399 GB, free: 20.86 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005709/1.287, allocations: 0.5307 MB / 1.4 GB, free: 20.55 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/1.288, allocations: 131.3 kB / 1.4 GB, free: 20.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.504e-05/1.288, allocations: 3.812 kB / 1.4 GB, free: 20.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002115/1.288, allocations: 23.45 kB / 1.4 GB, free: 20.41 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.035e-05/1.288, allocations: 23.22 kB / 1.4 GB, free: 20.41 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/1.288, allocations: 6.906 kB / 1.4 GB, free: 20.41 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001587/1.288, allocations: 197.8 kB / 1.4 GB, free: 20.31 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.288, allocations: 0 / 1.4 GB, free: 20.31 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003911/1.288, allocations: 80.75 kB / 1.4 GB, free: 20.3 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009555/1.289, allocations: 1.278 MB / 1.401 GB, free: 19.26 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006042/1.29, allocations: 0.5802 MB / 1.402 GB, free: 18.89 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/1.29, allocations: 4.188 kB / 1.402 GB, free: 18.89 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003088/1.29, allocations: 414.4 kB / 1.402 GB, free: 18.55 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005572/1.291, allocations: 103.7 kB / 1.403 GB, free: 18.52 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009735/1.292, allocations: 0.5839 MB / 1.403 GB, free: 18.19 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003665/1.292, allocations: 0.8437 MB / 1.404 GB, free: 17.41 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002277/1.293, allocations: 73 kB / 1.404 GB, free: 17.38 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/1.293, allocations: 124.9 kB / 1.404 GB, free: 17.36 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.293, allocations: 0 / 1.404 GB, free: 17.36 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02687/1.32, allocations: 6.943 MB / 1.411 GB, free: 13.76 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002825/1.32, allocations: 161.8 kB / 1.411 GB, free: 13.56 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.144/3.464, allocations: 0 / 1.411 GB, free: 13.56 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat does not exist to compare? outputFormat=mat