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.314/2.314, allocations: 387.1 MB / 399.7 MB, free: 9.473 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.001262/0.001262, allocations: 184.2 kB / 492.3 MB, free: 0.6016 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.508/1.508, allocations: 221.3 MB / 0.7871 GB, free: 12.95 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.0009555/0.0009554, allocations: 95.48 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.431e-05/3.436e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2784, allocations: 142.3 MB / 1.212 GB, free: 38.4 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.08/1.358, allocations: 165.7 MB / 1.374 GB, free: 18.98 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/1.359, allocations: 96.14 kB / 1.374 GB, free: 18.98 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05028/1.409, allocations: 22.24 MB / 1.396 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.785e-06/1.409, allocations: 0 / 1.396 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.391e-05/1.409, allocations: 7.688 kB / 1.396 GB, free: 27.5 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.001443/1.411, allocations: 0.6498 MB / 1.397 GB, free: 26.97 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.583e-05/1.411, allocations: 7.656 kB / 1.397 GB, free: 26.97 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001711/1.411, allocations: 76.23 kB / 1.397 GB, free: 26.92 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001171/1.412, allocations: 128.6 kB / 1.397 GB, free: 26.87 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008254/1.413, allocations: 386.4 kB / 1.397 GB, free: 26.57 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.124e-05/1.413, allocations: 19.66 kB / 1.397 GB, free: 26.57 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.751e-05/1.413, allocations: 33.28 kB / 1.397 GB, free: 26.56 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009809/1.414, allocations: 0.583 MB / 1.398 GB, free: 26.19 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.857e-05/1.414, allocations: 7.781 kB / 1.398 GB, free: 26.19 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.49e-05/1.414, allocations: 14.56 kB / 1.398 GB, free: 26.19 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.174e-05/1.414, allocations: 31.36 kB / 1.398 GB, free: 26.18 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006401/1.415, allocations: 384.2 kB / 1.398 GB, free: 26.12 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003462/1.418, allocations: 3.358 MB / 1.402 GB, free: 22.89 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006648/1.419, allocations: 327.5 kB / 1.402 GB, free: 22.65 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002335/1.419, allocations: 158.5 kB / 1.402 GB, free: 22.55 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.36e-05/1.419, allocations: 4 kB / 1.402 GB, free: 22.54 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/1.419, allocations: 37.88 kB / 1.402 GB, free: 22.5 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=26): time 3.717e-06/1.419, allocations: 4 kB / 1.402 GB, free: 22.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=27): time 0.001343/1.421, allocations: 0.5867 MB / 1.403 GB, free: 22.02 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/1.421, allocations: 67.09 kB / 1.403 GB, free: 21.95 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003539/1.421, allocations: 293 kB / 1.403 GB, free: 21.7 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/1.421, allocations: 28.89 kB / 1.403 GB, free: 21.67 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000167/1.421, allocations: 235.6 kB / 1.403 GB, free: 21.49 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.267e-05/1.421, allocations: 97.09 kB / 1.403 GB, free: 21.41 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.674e-05/1.422, allocations: 7.625 kB / 1.403 GB, free: 21.41 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001694/1.422, allocations: 345.8 kB / 1.404 GB, free: 21.07 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002329/1.422, allocations: 130.3 kB / 1.404 GB, free: 20.99 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002423/1.422, allocations: 253.5 kB / 1.404 GB, free: 20.74 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002449/1.422, allocations: 179.2 kB / 1.404 GB, free: 20.61 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/1.422, allocations: 4 kB / 1.404 GB, free: 20.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008009/1.423, allocations: 0.5041 MB / 1.405 GB, free: 20.2 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/1.423, allocations: 4 kB / 1.405 GB, free: 20.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/1.423, allocations: 7.938 kB / 1.405 GB, free: 20.19 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003232/1.424, allocations: 98.47 kB / 1.405 GB, free: 20.1 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003388/1.424, allocations: 87.64 kB / 1.405 GB, free: 20.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.787e-05/1.424, allocations: 11.92 kB / 1.405 GB, free: 20 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000309/1.424, allocations: 35.84 kB / 1.405 GB, free: 19.97 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.204e-05/1.424, allocations: 15.62 kB / 1.405 GB, free: 19.96 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.0001426/1.425, allocations: 124.4 kB / 1.405 GB, free: 19.84 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.279e-05/1.425, allocations: 43.48 kB / 1.405 GB, free: 19.8 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007289/1.425, allocations: 426.6 kB / 1.406 GB, free: 19.49 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/1.425, allocations: 7.984 kB / 1.406 GB, free: 19.48 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/1.425, allocations: 0 / 1.406 GB, free: 19.48 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/1.425, allocations: 4 kB / 1.406 GB, free: 19.48 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001397/1.427, allocations: 0.9553 MB / 1.407 GB, free: 18.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/1.427, allocations: 0 / 1.407 GB, free: 18.64 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002308/1.427, allocations: 51.95 kB / 1.407 GB, free: 18.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000222/1.427, allocations: 90.05 kB / 1.407 GB, free: 18.51 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/1.427, allocations: 3.438 kB / 1.407 GB, free: 18.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/1.427, allocations: 4 kB / 1.407 GB, free: 18.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/1.427, allocations: 0 / 1.407 GB, free: 18.51 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006723/1.428, allocations: 0.5518 MB / 1.407 GB, free: 18 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001686/1.428, allocations: 136.2 kB / 1.407 GB, free: 17.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.307e-05/1.428, allocations: 7.562 kB / 1.407 GB, free: 17.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/1.429, allocations: 23.84 kB / 1.407 GB, free: 17.83 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.965e-05/1.429, allocations: 27.91 kB / 1.407 GB, free: 17.81 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-05/1.429, allocations: 4 kB / 1.407 GB, free: 17.8 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002206/1.429, allocations: 232 kB / 1.408 GB, free: 17.62 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.51e-07/1.429, allocations: 0 / 1.408 GB, free: 17.62 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004395/1.429, allocations: 95.44 kB / 1.408 GB, free: 17.54 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.001134/1.43, allocations: 1.303 MB / 1.409 GB, free: 16.28 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006595/1.431, allocations: 0.595 MB / 1.41 GB, free: 15.71 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/1.431, allocations: 0 / 1.41 GB, free: 15.71 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003322/1.432, allocations: 422.4 kB / 1.41 GB, free: 15.29 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006175/1.432, allocations: 124.1 kB / 1.41 GB, free: 15.19 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/1.433, allocations: 0.606 MB / 1.411 GB, free: 14.61 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004058/1.434, allocations: 0.8388 MB / 1.412 GB, free: 13.75 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003054/1.434, allocations: 75.3 kB / 1.412 GB, free: 13.68 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/1.434, allocations: 126.5 kB / 1.412 GB, free: 13.64 MB / 0.8386 GB Notification: Performance of SimCode: time 5.31e-07/1.434, allocations: 4 kB / 1.412 GB, free: 13.64 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02618/1.46, allocations: 7.768 MB / 1.419 GB, free: 6.117 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00023/1.461, allocations: 190.5 kB / 1.419 GB, free: 5.891 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.246/3.706, allocations: 64 / 1.419 GB, free: 5.891 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