Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_8_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 196.4 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.697/1.697, allocations: 292.3 MB / 0.5489 GB, free: 12.82 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 67.53 kB / 0.6716 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2878, allocations: 114.5 MB / 0.7835 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.006253/0.2941, allocations: 3.752 MB / 0.7871 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003347/0.2975, allocations: 1.833 MB / 0.7889 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002521/0.2978, allocations: 15.94 kB / 0.7889 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0009521/0.2988, allocations: 266.6 kB / 0.7892 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0006705/0.2995, allocations: 290.5 kB / 0.7895 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006435/0.3001, allocations: 262.2 kB / 0.7897 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006268/0.3007, allocations: 0.601 MB / 0.7903 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004744/0.3012, allocations: 258.5 kB / 0.7906 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003288/0.3016, allocations: 239 kB / 0.7908 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003373/0.3019, allocations: 227 kB / 0.791 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.856e-05/0.302, allocations: 24 kB / 0.791 GB, free: 5.586 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004949/0.3025, allocations: 283.3 kB / 0.7913 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001503/0.3026, allocations: 127.6 kB / 0.7914 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000218/0.3029, allocations: 210.9 kB / 0.7916 GB, free: 4.977 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006921/0.3036, allocations: 0.5765 MB / 0.7922 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3036, allocations: 0 / 0.7922 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3036, allocations: 0 / 0.7922 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.3036, allocations: 0 / 0.7922 GB, free: 4.398 MB / 0.6075 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.001324/0.3049, allocations: 0.7401 MB / 0.7929 GB, free: 3.609 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.305, allocations: 11.97 kB / 0.7929 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.587e-05/0.3051, allocations: 74.7 kB / 0.793 GB, free: 3.516 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009463/0.306, allocations: 136.2 kB / 0.7931 GB, free: 3.383 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005167/0.3066, allocations: 371.7 kB / 0.7935 GB, free: 2.98 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.898e-05/0.3066, allocations: 29 kB / 0.7935 GB, free: 2.953 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.718e-05/0.3067, allocations: 28.36 kB / 0.7935 GB, free: 2.926 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008365/0.3075, allocations: 0.5572 MB / 0.7941 GB, free: 2.293 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.3075, allocations: 7.844 kB / 0.7941 GB, free: 2.285 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.899e-05/0.3076, allocations: 15.98 kB / 0.7941 GB, free: 2.27 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-05/0.3077, allocations: 44.53 kB / 0.7941 GB, free: 2.227 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006904/0.3084, allocations: 409.7 kB / 0.7945 GB, free: 1.82 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003139/0.3115, allocations: 3.334 MB / 0.7978 GB, free: 14.24 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007083/0.3122, allocations: 330.5 kB / 0.7981 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002972/0.3125, allocations: 187.6 kB / 0.7983 GB, free: 13.73 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.3126, allocations: 0 / 0.7983 GB, free: 13.73 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.3126, allocations: 38.56 kB / 0.7983 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=26): time 4.018e-06/0.3126, allocations: 0 / 0.7983 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of matching and sorting (n=27): time 0.002123/0.3148, allocations: 1.058 MB / 0.7993 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.3148, allocations: 51.64 kB / 0.7994 GB, free: 12.49 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003608/0.3152, allocations: 341.6 kB / 0.7997 GB, free: 12.15 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.3152, allocations: 29.7 kB / 0.7998 GB, free: 12.11 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.3154, allocations: 255.5 kB / 0.8 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 7.406e-05/0.3155, allocations: 90.66 kB / 0.8001 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.3156, allocations: 78.03 kB / 0.8002 GB, free: 11.69 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001575/0.3158, allocations: 342.8 kB / 0.8005 GB, free: 11.34 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/0.3161, allocations: 152.8 kB / 0.8006 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003554/0.3164, allocations: 286.5 kB / 0.8009 GB, free: 10.86 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007048/0.3171, allocations: 488.8 kB / 0.8014 GB, free: 10.32 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3171, allocations: 0 / 0.8014 GB, free: 10.32 MB / 0.6231 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009888/0.3181, allocations: 0.5624 MB / 0.8019 GB, free: 9.738 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.3182, allocations: 12.72 kB / 0.8019 GB, free: 9.727 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3182, allocations: 8.031 kB / 0.8019 GB, free: 9.719 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003192/0.3185, allocations: 86.5 kB / 0.802 GB, free: 9.625 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003425/0.3189, allocations: 87.83 kB / 0.8021 GB, free: 9.539 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.713e-05/0.3189, allocations: 11.92 kB / 0.8021 GB, free: 9.527 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002497/0.3192, allocations: 35.91 kB / 0.8022 GB, free: 9.492 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.71e-05/0.3192, allocations: 16 kB / 0.8022 GB, free: 9.477 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002058/0.3194, allocations: 178.9 kB / 0.8023 GB, free: 9.297 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.994e-05/0.3195, allocations: 39.53 kB / 0.8024 GB, free: 9.258 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008977/0.3204, allocations: 468 kB / 0.8028 GB, free: 8.781 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3204, allocations: 4 kB / 0.8028 GB, free: 8.777 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3204, allocations: 4 kB / 0.8028 GB, free: 8.773 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.3204, allocations: 0 / 0.8028 GB, free: 8.773 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001484/0.3219, allocations: 0.9636 MB / 0.8038 GB, free: 7.734 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.3219, allocations: 8.031 kB / 0.8038 GB, free: 7.727 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002383/0.3222, allocations: 51.95 kB / 0.8038 GB, free: 7.676 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002359/0.3224, allocations: 82.45 kB / 0.8039 GB, free: 7.586 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.484e-05/0.3225, allocations: 8 kB / 0.8039 GB, free: 7.578 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.3225, allocations: 0 / 0.8039 GB, free: 7.578 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3225, allocations: 4 kB / 0.8039 GB, free: 7.574 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008426/0.3233, allocations: 0.5428 MB / 0.8044 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001603/0.3235, allocations: 140.6 kB / 0.8046 GB, free: 6.84 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.987e-05/0.3236, allocations: 4 kB / 0.8046 GB, free: 6.836 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002119/0.3238, allocations: 27.91 kB / 0.8046 GB, free: 6.809 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.756e-05/0.3239, allocations: 19.97 kB / 0.8046 GB, free: 6.789 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.3239, allocations: 15.98 kB / 0.8046 GB, free: 6.773 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0003229/0.3242, allocations: 231.2 kB / 0.8049 GB, free: 6.551 MB / 0.6231 GB Notification: Performance of sort global known variables: time 3.21e-07/0.3242, allocations: 4 kB / 0.8049 GB, free: 6.547 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.000453/0.3247, allocations: 84 kB / 0.8049 GB, free: 6.465 MB / 0.6231 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 () * Number of clocked 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 (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001257/0.326, allocations: 1.094 MB / 0.806 GB, free: 5.324 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001016/0.327, allocations: 0.6705 MB / 0.8067 GB, free: 4.59 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.327, allocations: 128 / 0.8067 GB, free: 4.59 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0005003/0.3275, allocations: 437.6 kB / 0.8071 GB, free: 4.098 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008685/0.3284, allocations: 128.6 kB / 0.8072 GB, free: 3.973 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005316/0.3337, allocations: 3.733 MB / 0.8109 GB, free: 0 / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006047/0.3344, allocations: 0.8192 MB / 0.8117 GB, free: 15.15 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0003042/0.3347, allocations: 79.3 kB / 0.8117 GB, free: 15.08 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002143/0.3349, allocations: 123.4 kB / 0.8119 GB, free: 14.96 MB / 0.6387 GB Notification: Performance of SimCode: time 7.92e-07/0.3349, allocations: 3.938 kB / 0.8119 GB, free: 14.95 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03762/0.3725, allocations: 8.198 MB / 0.8199 GB, free: 6.953 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.619/9.992, allocations: 14.59 kB / 0.8199 GB, free: 6.941 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)