Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.353/1.353, allocations: 251.5 MB / 266.7 MB, free: 11.07 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001174/0.001173, allocations: 171.9 kB / 325.8 MB, free: 2.715 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.379/1.379, allocations: 205 MB / 0.576 GB, free: 21 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007159/0.0007157, allocations: 91.42 kB / 0.6797 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002885/0.0002886, allocations: 8.875 kB / 0.7933 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1799/0.1803, allocations: 105.4 MB / 0.8962 GB, free: 68.14 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.004172/0.1845, allocations: 2.767 MB / 0.8989 GB, free: 65.36 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.003137/0.1877, allocations: 1.796 MB / 0.9007 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.1879, allocations: 7.938 kB / 0.9007 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0008073/0.1887, allocations: 207.3 kB / 0.9009 GB, free: 63.34 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0005361/0.1892, allocations: 179.2 kB / 0.901 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006967/0.1899, allocations: 235.5 kB / 0.9013 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0005191/0.1905, allocations: 494.6 kB / 0.9017 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000447/0.1909, allocations: 205.8 kB / 0.9019 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002238/0.1912, allocations: 127.5 kB / 0.9021 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002968/0.1915, allocations: 171.4 kB / 0.9022 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.461e-05/0.1916, allocations: 12 kB / 0.9022 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005111/0.1921, allocations: 315.4 kB / 0.9025 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.1922, allocations: 87.66 kB / 0.9026 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001383/0.1923, allocations: 127.3 kB / 0.9027 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0005569/0.1929, allocations: 462.5 kB / 0.9032 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1929, allocations: 4 kB / 0.9032 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.483e-06/0.1929, allocations: 0 / 0.9032 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.193, allocations: 0 / 0.9032 GB, free: 60.96 MB / 0.6042 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.00118/0.1941, allocations: 0.6097 MB / 0.9038 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.1942, allocations: 8.031 kB / 0.9038 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.279e-05/0.1943, allocations: 58.72 kB / 0.9038 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001126/0.1954, allocations: 100.5 kB / 0.9039 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/0.1958, allocations: 279.5 kB / 0.9042 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.1958, allocations: 12.81 kB / 0.9042 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.424e-05/0.1959, allocations: 20.38 kB / 0.9042 GB, free: 59.78 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.1969, allocations: 434.6 kB / 0.9047 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.1969, allocations: 0 / 0.9047 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.358e-05/0.197, allocations: 11.98 kB / 0.9047 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-05/0.1971, allocations: 28.34 kB / 0.9047 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/0.1983, allocations: 416.7 kB / 0.9051 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/0.2003, allocations: 1.615 MB / 0.9067 GB, free: 57.13 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/0.2018, allocations: 493 kB / 0.9071 GB, free: 56.63 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005966/0.2025, allocations: 201.6 kB / 0.9073 GB, free: 56.43 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001545/0.2026, allocations: 93.09 kB / 0.9074 GB, free: 56.32 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006816/0.2033, allocations: 282.4 kB / 0.9077 GB, free: 56.03 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=27): time 2.925e-06/0.2033, allocations: 0 / 0.9077 GB, free: 56.03 MB / 0.6042 GB Notification: Performance of matching and sorting (n=28): time 0.002531/0.2059, allocations: 0.7858 MB / 0.9085 GB, free: 55.21 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.389e-05/0.2059, allocations: 81.11 kB / 0.9085 GB, free: 55.12 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002475/0.2062, allocations: 229 kB / 0.9087 GB, free: 54.89 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.454e-05/0.2062, allocations: 29.7 kB / 0.9088 GB, free: 54.85 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 9.908e-05/0.2063, allocations: 172.3 kB / 0.9089 GB, free: 54.68 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 9.734e-05/0.2065, allocations: 86.75 kB / 0.909 GB, free: 54.59 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.25e-05/0.2065, allocations: 29.7 kB / 0.9091 GB, free: 54.56 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.766e-05/0.2066, allocations: 338.8 kB / 0.9094 GB, free: 54.22 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005789/0.2072, allocations: 180.2 kB / 0.9095 GB, free: 54.04 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006155/0.2078, allocations: 261.3 kB / 0.9098 GB, free: 53.76 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.209, allocations: 482.9 kB / 0.9103 GB, free: 53.25 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.209, allocations: 3.938 kB / 0.9103 GB, free: 53.25 MB / 0.6042 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001589/0.2106, allocations: 0.5676 MB / 0.9108 GB, free: 52.66 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.076e-05/0.2107, allocations: 178.6 kB / 0.911 GB, free: 52.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.2107, allocations: 4 kB / 0.911 GB, free: 52.45 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002668/0.211, allocations: 44.77 kB / 0.911 GB, free: 52.4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005681/0.2116, allocations: 91.86 kB / 0.9111 GB, free: 52.31 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001347/0.213, allocations: 1.509 MB / 0.9126 GB, free: 50.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004356/0.2134, allocations: 47.86 kB / 0.9126 GB, free: 50.61 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.01e-05/0.2135, allocations: 20 kB / 0.9127 GB, free: 50.59 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.174e-06/0.2135, allocations: 4 kB / 0.9127 GB, free: 50.59 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001303/0.2148, allocations: 0.4942 MB / 0.9131 GB, free: 50.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2148, allocations: 8.281 kB / 0.9132 GB, free: 50.08 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001535/0.215, allocations: 48.75 kB / 0.9132 GB, free: 50.03 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004459/0.2154, allocations: 79.88 kB / 0.9133 GB, free: 49.95 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/0.2165, allocations: 1.485 MB / 0.9147 GB, free: 48.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003844/0.2169, allocations: 43.81 kB / 0.9148 GB, free: 48.29 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.524e-05/0.217, allocations: 24.05 kB / 0.9148 GB, free: 48.26 MB / 0.6042 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 (load.count,$PRE.load.count,load.T_start,$PRE.load.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002014/0.2172, allocations: 241.6 kB / 0.915 GB, free: 48.02 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.864e-05/0.2173, allocations: 23.72 kB / 0.915 GB, free: 47.99 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001279/0.2185, allocations: 490.8 kB / 0.9155 GB, free: 47.5 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.2186, allocations: 4 kB / 0.9155 GB, free: 47.5 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2186, allocations: 11.98 kB / 0.9155 GB, free: 47.49 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.872e-06/0.2186, allocations: 0 / 0.9155 GB, free: 47.49 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006664/0.2193, allocations: 0.5699 MB / 0.9161 GB, free: 46.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.2193, allocations: 8.094 kB / 0.9161 GB, free: 46.85 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004885/0.2198, allocations: 76 kB / 0.9162 GB, free: 46.77 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001421/0.2199, allocations: 48.8 kB / 0.9162 GB, free: 46.72 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.847e-05/0.22, allocations: 0 / 0.9162 GB, free: 46.72 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009867/0.221, allocations: 1.413 MB / 0.9176 GB, free: 45.17 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.221, allocations: 0 / 0.9176 GB, free: 45.17 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.2223, allocations: 0.5731 MB / 0.9181 GB, free: 44.57 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001684/0.2225, allocations: 132.7 kB / 0.9183 GB, free: 44.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.334e-05/0.2226, allocations: 11.98 kB / 0.9183 GB, free: 44.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004514/0.223, allocations: 43.95 kB / 0.9183 GB, free: 44.37 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.2232, allocations: 23.97 kB / 0.9183 GB, free: 44.34 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.474e-05/0.2232, allocations: 15.98 kB / 0.9184 GB, free: 44.33 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001819/0.2234, allocations: 172.4 kB / 0.9185 GB, free: 44.16 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2e-07/0.2234, allocations: 0 / 0.9185 GB, free: 44.16 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0008892/0.2243, allocations: 128 kB / 0.9187 GB, free: 44.04 MB / 0.6042 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001575/0.2259, allocations: 1.117 MB / 0.9197 GB, free: 42.88 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002356/0.2283, allocations: 1.013 MB / 0.9207 GB, free: 41.82 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.2283, allocations: 0 / 0.9207 GB, free: 41.82 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0008113/0.2291, allocations: 338.9 kB / 0.9211 GB, free: 41.47 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007361/0.2299, allocations: 56.41 kB / 0.9211 GB, free: 41.42 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006247/0.2361, allocations: 3.492 MB / 0.9245 GB, free: 37.77 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.2364, allocations: 0.7878 MB / 0.9253 GB, free: 36.96 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.000478/0.2369, allocations: 102.3 kB / 0.9254 GB, free: 36.86 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002056/0.2371, allocations: 83.41 kB / 0.9255 GB, free: 36.78 MB / 0.6042 GB Notification: Performance of SimCode: time 5.31e-07/0.2371, allocations: 0 / 0.9255 GB, free: 36.78 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4771/0.7142, allocations: 6.571 MB / 0.9319 GB, free: 30.42 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002654/0.7145, allocations: 255 kB / 0.9321 GB, free: 30.16 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.535/3.25, allocations: 0 / 0.9321 GB, free: 30.16 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)