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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009392/0.0009391, allocations: 97.95 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005735/0.005735, allocations: 169.7 kB / 16.27 MB, free: 6.652 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.328/1.328, allocations: 205.4 MB / 222.4 MB, free: 5.551 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.591/1.591, allocations: 292.7 MB / 0.5502 GB, free: 14.44 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.0004742/0.0004742, allocations: 15.62 kB / 0.6744 GB, free: 25.83 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1888/0.1893, allocations: 116.3 MB / 0.788 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003049/0.1924, allocations: 2.723 MB / 0.7907 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002322/0.1947, allocations: 1.758 MB / 0.7924 GB, free: 6.938 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.1948, allocations: 4 kB / 0.7924 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.195, allocations: 35.7 kB / 0.7924 GB, free: 6.898 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003641/0.1953, allocations: 175.2 kB / 0.7926 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004529/0.1958, allocations: 251.4 kB / 0.7928 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004166/0.1962, allocations: 498.6 kB / 0.7933 GB, free: 5.992 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006666/0.1969, allocations: 409.8 kB / 0.7937 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.1971, allocations: 131.5 kB / 0.7938 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003019/0.1974, allocations: 171.3 kB / 0.794 GB, free: 5.281 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.029e-05/0.1974, allocations: 16 kB / 0.794 GB, free: 5.266 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003746/0.1978, allocations: 307.4 kB / 0.7943 GB, free: 4.965 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.605e-05/0.1979, allocations: 79.72 kB / 0.7944 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.198, allocations: 161 kB / 0.7945 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004247/0.1985, allocations: 462.5 kB / 0.795 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.1985, allocations: 4 kB / 0.795 GB, free: 4.266 MB / 0.6075 GB Notification: Performance of FrontEnd: time 8.21e-07/0.1985, allocations: 0 / 0.795 GB, free: 4.266 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.1985, allocations: 0 / 0.795 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0009854/0.1995, allocations: 0.598 MB / 0.7956 GB, free: 3.609 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.1995, allocations: 12.03 kB / 0.7956 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.336e-05/0.1996, allocations: 62.72 kB / 0.7956 GB, free: 3.527 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006282/0.2002, allocations: 96.47 kB / 0.7957 GB, free: 3.434 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002824/0.2005, allocations: 283.5 kB / 0.796 GB, free: 3.117 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.2005, allocations: 16.8 kB / 0.796 GB, free: 3.102 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.761e-05/0.2006, allocations: 16.38 kB / 0.796 GB, free: 3.086 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007509/0.2014, allocations: 434.7 kB / 0.7964 GB, free: 2.633 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.2014, allocations: 4 kB / 0.7964 GB, free: 2.629 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.2014, allocations: 4 kB / 0.7964 GB, free: 2.625 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.106e-05/0.2015, allocations: 32.36 kB / 0.7965 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008708/0.2023, allocations: 416.7 kB / 0.7969 GB, free: 2.184 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.2039, allocations: 1.607 MB / 0.7984 GB, free: 460 kB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.205, allocations: 493 kB / 0.7989 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004149/0.2054, allocations: 205.6 kB / 0.7991 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001202/0.2056, allocations: 97.09 kB / 0.7992 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004985/0.2061, allocations: 278.5 kB / 0.7995 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=27): time 1.463e-06/0.2061, allocations: 0 / 0.7995 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of matching and sorting (n=28): time 0.001683/0.2078, allocations: 0.7868 MB / 0.8002 GB, free: 14.53 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.2078, allocations: 84.98 kB / 0.8003 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001849/0.208, allocations: 228.9 kB / 0.8005 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.2081, allocations: 33.7 kB / 0.8006 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 8.711e-05/0.2081, allocations: 168.3 kB / 0.8007 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 7.555e-05/0.2082, allocations: 98.64 kB / 0.8008 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.166e-05/0.2083, allocations: 33.7 kB / 0.8008 GB, free: 13.85 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.918e-05/0.2084, allocations: 334.8 kB / 0.8012 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004295/0.2088, allocations: 184.2 kB / 0.8013 GB, free: 13.33 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004137/0.2092, allocations: 249.3 kB / 0.8016 GB, free: 13.06 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008276/0.2101, allocations: 479.4 kB / 0.802 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.2101, allocations: 4 kB / 0.802 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001051/0.2112, allocations: 0.5668 MB / 0.8026 GB, free: 11.97 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 9.804e-05/0.2113, allocations: 182.6 kB / 0.8028 GB, free: 11.75 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2113, allocations: 4 kB / 0.8028 GB, free: 11.75 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001887/0.2115, allocations: 48.75 kB / 0.8028 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003672/0.2118, allocations: 91.86 kB / 0.8029 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.213, allocations: 1.489 MB / 0.8044 GB, free: 9.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003033/0.2133, allocations: 55.86 kB / 0.8044 GB, free: 9.926 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.474e-05/0.2134, allocations: 15.98 kB / 0.8044 GB, free: 9.91 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 6.582e-06/0.2134, allocations: 4 kB / 0.8044 GB, free: 9.906 MB / 0.6231 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009809/0.2144, allocations: 0.4943 MB / 0.8049 GB, free: 9.402 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2144, allocations: 8.062 kB / 0.8049 GB, free: 9.395 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001116/0.2145, allocations: 40.77 kB / 0.805 GB, free: 9.352 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003328/0.2149, allocations: 84.06 kB / 0.805 GB, free: 9.27 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001037/0.2159, allocations: 1.496 MB / 0.8065 GB, free: 7.633 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002736/0.2162, allocations: 47.86 kB / 0.8065 GB, free: 7.586 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.504e-05/0.2162, allocations: 20 kB / 0.8066 GB, free: 7.566 MB / 0.6231 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.0001766/0.2164, allocations: 237 kB / 0.8068 GB, free: 7.324 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.016e-05/0.2165, allocations: 23.84 kB / 0.8068 GB, free: 7.301 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001013/0.2175, allocations: 0.4888 MB / 0.8073 GB, free: 6.805 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2175, allocations: 4 kB / 0.8073 GB, free: 6.801 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.2175, allocations: 0 / 0.8073 GB, free: 6.801 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.2175, allocations: 0 / 0.8073 GB, free: 6.801 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005654/0.2181, allocations: 0.5661 MB / 0.8079 GB, free: 6.172 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.2181, allocations: 4.031 kB / 0.8079 GB, free: 6.168 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003552/0.2184, allocations: 83.86 kB / 0.8079 GB, free: 6.086 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001005/0.2186, allocations: 32.83 kB / 0.808 GB, free: 6.051 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.358e-05/0.2186, allocations: 11.94 kB / 0.808 GB, free: 6.039 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009641/0.2196, allocations: 1.428 MB / 0.8094 GB, free: 4.473 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2196, allocations: 0 / 0.8094 GB, free: 4.473 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000944/0.2205, allocations: 0.5693 MB / 0.8099 GB, free: 3.875 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.2206, allocations: 132.7 kB / 0.8101 GB, free: 3.727 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.737e-05/0.2207, allocations: 4 kB / 0.8101 GB, free: 3.723 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002945/0.221, allocations: 47.94 kB / 0.8101 GB, free: 3.676 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.165e-05/0.2211, allocations: 23.97 kB / 0.8101 GB, free: 3.652 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.127e-05/0.2211, allocations: 11.98 kB / 0.8101 GB, free: 3.641 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001389/0.2213, allocations: 176.4 kB / 0.8103 GB, free: 3.465 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2213, allocations: 0 / 0.8103 GB, free: 3.465 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005117/0.2218, allocations: 136 kB / 0.8104 GB, free: 3.332 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: 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.001222/0.223, allocations: 1.116 MB / 0.8115 GB, free: 2.176 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001722/0.2247, allocations: 1.013 MB / 0.8125 GB, free: 1.113 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.2248, allocations: 0 / 0.8125 GB, free: 1.113 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000633/0.2254, allocations: 343.4 kB / 0.8128 GB, free: 0.7656 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004572/0.2259, allocations: 52.41 kB / 0.8129 GB, free: 0.7148 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004797/0.2307, allocations: 3.504 MB / 0.8163 GB, free: 13.05 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003252/0.231, allocations: 0.78 MB / 0.8171 GB, free: 12.24 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0002809/0.2313, allocations: 102.3 kB / 0.8172 GB, free: 12.14 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/0.2315, allocations: 91.39 kB / 0.8173 GB, free: 12.05 MB / 0.6387 GB Notification: Performance of SimCode: time 2.91e-07/0.2315, allocations: 0 / 0.8173 GB, free: 12.05 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1647/0.3962, allocations: 6.572 MB / 0.8237 GB, free: 5.699 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002121/0.3964, allocations: 236.9 kB / 0.8239 GB, free: 5.449 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.888/2.284, allocations: 3.281 kB / 0.8239 GB, free: 5.449 MB / 0.6387 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/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)