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.001181/0.001181, allocations: 109.4 kB / 15.69 MB, free: 128 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.001148/0.001148, allocations: 189.1 kB / 16.62 MB, free: 6.613 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.67/1.67, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.758/1.758, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.001425/0.001425, allocations: 67.41 kB / 0.6718 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2247, allocations: 114.6 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005627/0.2303, allocations: 3.752 MB / 0.7873 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003307/0.2337, allocations: 1.836 MB / 0.7891 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003854/0.2341, allocations: 15.94 kB / 0.7891 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.2352, allocations: 266.6 kB / 0.7894 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0009006/0.2361, allocations: 290.5 kB / 0.7896 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007579/0.2368, allocations: 243.5 kB / 0.7899 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0008902/0.2377, allocations: 0.6127 MB / 0.7905 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004793/0.2382, allocations: 258.5 kB / 0.7907 GB, free: 5.945 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004553/0.2387, allocations: 235 kB / 0.7909 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004164/0.2391, allocations: 239 kB / 0.7912 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.148e-05/0.2392, allocations: 28 kB / 0.7912 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005978/0.2398, allocations: 271.4 kB / 0.7915 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000167/0.24, allocations: 127.6 kB / 0.7916 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002945/0.2403, allocations: 210.8 kB / 0.7918 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0009089/0.2412, allocations: 0.5843 MB / 0.7923 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2412, allocations: 0 / 0.7923 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.837e-06/0.2412, allocations: 0 / 0.7923 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.616e-05/0.2413, allocations: 3.938 kB / 0.7924 GB, free: 4.266 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.001388/0.2427, allocations: 0.7401 MB / 0.7931 GB, free: 3.477 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.2427, allocations: 8.031 kB / 0.7931 GB, free: 3.469 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.784e-05/0.2428, allocations: 70.72 kB / 0.7931 GB, free: 3.391 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009262/0.2437, allocations: 136.2 kB / 0.7933 GB, free: 3.258 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006126/0.2444, allocations: 407.6 kB / 0.7937 GB, free: 2.82 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.2444, allocations: 25.02 kB / 0.7937 GB, free: 2.797 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.721e-05/0.2445, allocations: 32.31 kB / 0.7937 GB, free: 2.766 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007962/0.2453, allocations: 0.5548 MB / 0.7943 GB, free: 2.133 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.2453, allocations: 7.844 kB / 0.7943 GB, free: 2.125 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.793e-05/0.2453, allocations: 19.97 kB / 0.7943 GB, free: 2.105 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.143e-05/0.2454, allocations: 40.55 kB / 0.7943 GB, free: 2.066 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007121/0.2461, allocations: 401.8 kB / 0.7947 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002811/0.2489, allocations: 3.334 MB / 0.798 GB, free: 14.09 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006325/0.2496, allocations: 339.3 kB / 0.7983 GB, free: 13.75 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00029/0.2499, allocations: 180.8 kB / 0.7985 GB, free: 13.57 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.2499, allocations: 0 / 0.7985 GB, free: 13.57 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.25, allocations: 34.56 kB / 0.7985 GB, free: 13.53 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=26): time 1.543e-06/0.25, allocations: 0 / 0.7985 GB, free: 13.53 MB / 0.6231 GB Notification: Performance of matching and sorting (n=27): time 0.002054/0.252, allocations: 1.065 MB / 0.7995 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.2521, allocations: 55.58 kB / 0.7996 GB, free: 12.33 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003592/0.2525, allocations: 337.6 kB / 0.7999 GB, free: 11.99 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.2525, allocations: 33.7 kB / 0.7999 GB, free: 11.95 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.2527, allocations: 247.5 kB / 0.8002 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 6.923e-05/0.2527, allocations: 94.64 kB / 0.8003 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.2528, allocations: 78.05 kB / 0.8003 GB, free: 11.53 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.253, allocations: 346.8 kB / 0.8007 GB, free: 11.18 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002619/0.2533, allocations: 144.8 kB / 0.8008 GB, free: 11.04 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003491/0.2536, allocations: 293 kB / 0.8011 GB, free: 10.7 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006587/0.2543, allocations: 484.8 kB / 0.8016 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.2543, allocations: 3.938 kB / 0.8016 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001048/0.2554, allocations: 0.5701 MB / 0.8021 GB, free: 9.574 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.2554, allocations: 8 kB / 0.8021 GB, free: 9.566 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.2554, allocations: 4 kB / 0.8021 GB, free: 9.562 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003196/0.2557, allocations: 86.52 kB / 0.8022 GB, free: 9.469 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003434/0.2561, allocations: 83.88 kB / 0.8023 GB, free: 9.387 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.472e-05/0.2561, allocations: 15.88 kB / 0.8023 GB, free: 9.371 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002919/0.2564, allocations: 32.03 kB / 0.8023 GB, free: 9.34 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.058e-05/0.2564, allocations: 20 kB / 0.8024 GB, free: 9.32 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.0001955/0.2566, allocations: 176.7 kB / 0.8025 GB, free: 9.141 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.268e-05/0.2567, allocations: 39.53 kB / 0.8026 GB, free: 9.102 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009084/0.2576, allocations: 468 kB / 0.803 GB, free: 8.625 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.2577, allocations: 4 kB / 0.803 GB, free: 8.621 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.2577, allocations: 4 kB / 0.803 GB, free: 8.617 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.2577, allocations: 3.984 kB / 0.803 GB, free: 8.613 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/0.2591, allocations: 0.9653 MB / 0.804 GB, free: 7.574 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.2591, allocations: 0 / 0.804 GB, free: 7.574 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002364/0.2593, allocations: 55.89 kB / 0.804 GB, free: 7.52 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002294/0.2596, allocations: 78.5 kB / 0.8041 GB, free: 7.434 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/0.2596, allocations: 8 kB / 0.8041 GB, free: 7.426 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.2596, allocations: 4 kB / 0.8041 GB, free: 7.422 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.2596, allocations: 96 / 0.8041 GB, free: 7.422 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008333/0.2605, allocations: 0.5428 MB / 0.8046 GB, free: 6.844 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000171/0.2607, allocations: 148.6 kB / 0.8048 GB, free: 6.68 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.323e-05/0.2607, allocations: 4 kB / 0.8048 GB, free: 6.676 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.261, allocations: 27.91 kB / 0.8048 GB, free: 6.648 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.811e-05/0.261, allocations: 15.97 kB / 0.8048 GB, free: 6.633 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.2611, allocations: 12 kB / 0.8048 GB, free: 6.621 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002496/0.2613, allocations: 235.2 kB / 0.8051 GB, free: 6.395 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2613, allocations: 0 / 0.8051 GB, free: 6.395 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004388/0.2618, allocations: 84 kB / 0.8051 GB, free: 6.312 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.001094/0.2629, allocations: 1.092 MB / 0.8062 GB, free: 5.172 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0008973/0.2638, allocations: 0.6472 MB / 0.8068 GB, free: 4.461 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.2638, allocations: 0 / 0.8068 GB, free: 4.461 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004482/0.2642, allocations: 435.2 kB / 0.8072 GB, free: 3.973 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006956/0.265, allocations: 131.6 kB / 0.8074 GB, free: 3.848 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004965/0.2699, allocations: 3.711 MB / 0.811 GB, free: 15.9 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004101/0.2704, allocations: 0.8268 MB / 0.8118 GB, free: 15.05 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0002937/0.2707, allocations: 79.36 kB / 0.8119 GB, free: 14.97 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001816/0.2709, allocations: 127.4 kB / 0.812 GB, free: 14.85 MB / 0.6387 GB Notification: Performance of SimCode: time 2.806e-06/0.2709, allocations: 0 / 0.812 GB, free: 14.85 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0288/0.2997, allocations: 8.228 MB / 0.82 GB, free: 6.832 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.711/10.01, allocations: 16.25 kB / 0.8201 GB, free: 6.816 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)