Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.643/1.643, allocations: 289.9 MB / 297.4 MB, free: 6.375 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001789/0.001789, allocations: 172.8 kB / 366.7 MB, free: 1.672 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.563/1.563, allocations: 205.2 MB / 0.626 GB, free: 7.176 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008931/0.000893, allocations: 79.95 kB / 0.74 GB, free: 39.56 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.569e-05/3.548e-05, allocations: 4 kB / 0.8598 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6395/0.6396, allocations: 116.3 MB / 0.9734 GB, free: 76.24 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2217/0.8613, allocations: 160.2 MB / 1.13 GB, free: 5.812 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004002/0.8618, allocations: 97.5 kB / 1.13 GB, free: 5.719 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.05192/0.9137, allocations: 16.94 MB / 1.146 GB, free: 4.727 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.054e-06/0.9138, allocations: 0 / 1.146 GB, free: 4.727 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.781e-05/0.9138, allocations: 4 kB / 1.146 GB, free: 4.723 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001545/0.9154, allocations: 0.621 MB / 1.147 GB, free: 4.047 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.882e-05/0.9155, allocations: 8.031 kB / 1.147 GB, free: 4.039 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009831/0.9164, allocations: 99.52 kB / 1.147 GB, free: 3.941 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005041/0.917, allocations: 282 kB / 1.147 GB, free: 3.625 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.917, allocations: 4 kB / 1.147 GB, free: 3.621 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.762e-05/0.9171, allocations: 16 kB / 1.147 GB, free: 3.605 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004797/0.9176, allocations: 244.9 kB / 1.148 GB, free: 3.363 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005969/0.9182, allocations: 345.8 kB / 1.148 GB, free: 3 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.9182, allocations: 0 / 1.148 GB, free: 3 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.15e-05/0.9182, allocations: 0 / 1.148 GB, free: 3 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.525e-05/0.9183, allocations: 28.36 kB / 1.148 GB, free: 2.969 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002406/0.9207, allocations: 1.595 MB / 1.15 GB, free: 1.258 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008483/0.9216, allocations: 389.4 kB / 1.15 GB, free: 0.8555 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002865/0.9219, allocations: 153.7 kB / 1.15 GB, free: 0.6992 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001869/0.9221, allocations: 85.09 kB / 1.15 GB, free: 0.5977 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003835/0.9225, allocations: 224 kB / 1.15 GB, free: 372 kB / 0.7448 GB Notification: Performance of pre-optimization done (n=27): time 1.703e-06/0.9225, allocations: 0 / 1.15 GB, free: 372 kB / 0.7448 GB Notification: Performance of matching and sorting (n=28): time 0.001058/0.9236, allocations: 422.6 kB / 1.151 GB, free: 15.94 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.276e-05/0.9236, allocations: 89.05 kB / 1.151 GB, free: 15.84 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002106/0.9238, allocations: 183.2 kB / 1.151 GB, free: 15.65 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 3.796e-05/0.9239, allocations: 29.7 kB / 1.151 GB, free: 15.62 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.924, allocations: 168 kB / 1.151 GB, free: 15.45 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 8.766e-05/0.9241, allocations: 94.75 kB / 1.151 GB, free: 15.36 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.993e-05/0.9242, allocations: 2.812 kB / 1.151 GB, free: 15.36 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001575/0.9243, allocations: 334.8 kB / 1.152 GB, free: 15.02 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002113/0.9245, allocations: 124.3 kB / 1.152 GB, free: 14.9 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002495/0.9248, allocations: 193.4 kB / 1.152 GB, free: 14.68 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003334/0.9251, allocations: 168.1 kB / 1.152 GB, free: 14.52 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.9252, allocations: 0 / 1.152 GB, free: 14.52 MB / 0.7605 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008477/0.926, allocations: 424 kB / 1.153 GB, free: 14.09 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004623/0.9265, allocations: 0.9029 MB / 1.153 GB, free: 13.12 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.9265, allocations: 4 kB / 1.153 GB, free: 13.11 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002389/0.9268, allocations: 48.8 kB / 1.153 GB, free: 13.06 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004226/0.9272, allocations: 91.86 kB / 1.154 GB, free: 12.97 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/0.9287, allocations: 1.432 MB / 1.155 GB, free: 11.43 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003623/0.9291, allocations: 51.78 kB / 1.155 GB, free: 11.38 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.58e-05/0.9291, allocations: 12 kB / 1.155 GB, free: 11.36 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.9291, allocations: 4 kB / 1.155 GB, free: 11.36 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007431/0.9299, allocations: 364.4 kB / 1.155 GB, free: 11 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.9299, allocations: 2 kB / 1.155 GB, free: 11 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001326/0.93, allocations: 40.83 kB / 1.155 GB, free: 10.96 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000384/0.9304, allocations: 92.06 kB / 1.156 GB, free: 10.87 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001237/0.9317, allocations: 1.43 MB / 1.157 GB, free: 9.312 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003196/0.932, allocations: 39.94 kB / 1.157 GB, free: 9.273 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.437e-05/0.932, allocations: 19.36 kB / 1.157 GB, free: 9.258 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000164/0.9322, allocations: 112.9 kB / 1.157 GB, free: 9.141 MB / 0.7605 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006627/0.9329, allocations: 358.1 kB / 1.157 GB, free: 8.781 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.12e-05/0.933, allocations: 23.72 kB / 1.157 GB, free: 8.758 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007948/0.9338, allocations: 387.4 kB / 1.158 GB, free: 8.371 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.9338, allocations: 4 kB / 1.158 GB, free: 8.367 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.9338, allocations: 0 / 1.158 GB, free: 8.367 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.9338, allocations: 0 / 1.158 GB, free: 8.367 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009799/0.9348, allocations: 0.5198 MB / 1.158 GB, free: 7.797 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.9348, allocations: 0 / 1.158 GB, free: 7.797 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005786/0.9354, allocations: 83.86 kB / 1.158 GB, free: 7.715 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001705/0.9356, allocations: 32.83 kB / 1.158 GB, free: 7.68 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.782e-05/0.9357, allocations: 8.094 kB / 1.158 GB, free: 7.672 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001504/0.9372, allocations: 1.346 MB / 1.16 GB, free: 6.215 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.9372, allocations: 3.938 kB / 1.16 GB, free: 6.211 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.9383, allocations: 499.9 kB / 1.16 GB, free: 5.676 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000243/0.9386, allocations: 147.7 kB / 1.16 GB, free: 5.516 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.307e-05/0.9386, allocations: 0 / 1.16 GB, free: 5.516 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004752/0.9391, allocations: 39.95 kB / 1.16 GB, free: 5.477 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.9393, allocations: 31.89 kB / 1.16 GB, free: 5.445 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.981e-05/0.9393, allocations: 11.98 kB / 1.16 GB, free: 5.434 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0002286/0.9396, allocations: 164.5 kB / 1.161 GB, free: 5.277 MB / 0.7605 GB Notification: Performance of sort global known variables: time 4.11e-07/0.9396, allocations: 0 / 1.161 GB, free: 5.277 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001029/0.9406, allocations: 123.9 kB / 1.161 GB, free: 5.156 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001778/0.9424, allocations: 1.27 MB / 1.162 GB, free: 3.832 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001958/0.9444, allocations: 0.8282 MB / 1.163 GB, free: 2.961 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.9444, allocations: 0 / 1.163 GB, free: 2.961 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0006182/0.9451, allocations: 273.6 kB / 1.163 GB, free: 2.684 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005341/0.9456, allocations: 36.55 kB / 1.163 GB, free: 2.652 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00204/0.9477, allocations: 0.5258 MB / 1.164 GB, free: 2.082 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005644/0.9482, allocations: 0.7963 MB / 1.164 GB, free: 1.262 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0005873/0.9488, allocations: 100.5 kB / 1.164 GB, free: 1.164 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002434/0.9491, allocations: 83.41 kB / 1.165 GB, free: 1.082 MB / 0.7605 GB Notification: Performance of SimCode: time 3.91e-07/0.9491, allocations: 0 / 1.165 GB, free: 1.082 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03888/0.988, allocations: 6.285 MB / 1.171 GB, free: 10.91 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003821/0.9885, allocations: 161.8 kB / 1.171 GB, free: 10.72 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.106/3.094, allocations: 0 / 1.171 GB, free: 10.72 MB / 0.7761 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)