Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_latest_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.001931/0.001931, allocations: 99.08 kB / 15.05 MB, free: 1.105 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.00396/0.00396, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.472/2.472, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.445/4.445, allocations: 409.2 MB / 0.6838 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0007255/0.0007256, allocations: 8 kB / 0.8375 GB, free: 6.523 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.444/1.445, allocations: 146.8 MB / 0.9809 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.006929/1.452, allocations: 2.566 MB / 0.9834 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004921/1.457, allocations: 1.583 MB / 0.9849 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003513/1.457, allocations: 7.938 kB / 0.9849 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002949/1.457, allocations: 35.77 kB / 0.985 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0008955/1.458, allocations: 131.6 kB / 0.9851 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.00124/1.459, allocations: 194.3 kB / 0.9853 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0006518/1.46, allocations: 223.5 kB / 0.9855 GB, free: 1.527 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001437/1.462, allocations: 370.6 kB / 0.9858 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004568/1.462, allocations: 119.6 kB / 0.986 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005757/1.463, allocations: 131.5 kB / 0.9861 GB, free: 0.8945 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.647e-05/1.463, allocations: 16 kB / 0.9861 GB, free: 0.8789 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006971/1.464, allocations: 135.8 kB / 0.9862 GB, free: 0.7461 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001934/1.464, allocations: 71.8 kB / 0.9863 GB, free: 0.6758 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000207/1.464, allocations: 69.58 kB / 0.9864 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0009092/1.465, allocations: 345.4 kB / 0.9867 GB, free: 272 kB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 1.194e-05/1.465, allocations: 0 / 0.9867 GB, free: 272 kB / 0.7325 GB Notification: Performance of FrontEnd: time 4.429e-06/1.465, allocations: 3.938 kB / 0.9867 GB, free: 268 kB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.146e-05/1.465, allocations: 4 kB / 0.9867 GB, free: 264 kB / 0.7325 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.002587/1.468, allocations: 0.6017 MB / 0.9873 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 7.647e-05/1.468, allocations: 12.03 kB / 0.9873 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002059/1.468, allocations: 66.52 kB / 0.9874 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001668/1.47, allocations: 99.53 kB / 0.9875 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009121/1.471, allocations: 274.5 kB / 0.9877 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.386e-05/1.471, allocations: 16.44 kB / 0.9877 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/1.471, allocations: 23.95 kB / 0.9878 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001735/1.473, allocations: 426.5 kB / 0.9882 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.427e-05/1.473, allocations: 0 / 0.9882 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.856e-05/1.473, allocations: 12 kB / 0.9882 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001086/1.473, allocations: 28.3 kB / 0.9882 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001838/1.475, allocations: 416.7 kB / 0.9886 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003467/1.478, allocations: 1.615 MB / 0.9902 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002452/1.481, allocations: 489.1 kB / 0.9906 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002801/1.481, allocations: 89.09 kB / 0.9907 GB, free: 11.83 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001089/1.482, allocations: 274.5 kB / 0.991 GB, free: 11.54 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=27): time 5.17e-06/1.482, allocations: 0 / 0.991 GB, free: 11.54 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28): time 0.003943/1.486, allocations: 0.7746 MB / 0.9917 GB, free: 10.74 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/1.486, allocations: 85.23 kB / 0.9918 GB, free: 10.64 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005286/1.487, allocations: 232.9 kB / 0.992 GB, free: 10.41 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 7.235e-05/1.487, allocations: 33.7 kB / 0.9921 GB, free: 10.37 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002989/1.487, allocations: 168.4 kB / 0.9922 GB, free: 10.2 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/1.487, allocations: 90.66 kB / 0.9923 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.442e-05/1.487, allocations: 8 kB / 0.9923 GB, free: 10.1 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002791/1.488, allocations: 330.8 kB / 0.9927 GB, free: 9.77 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008109/1.489, allocations: 180.2 kB / 0.9928 GB, free: 9.594 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008731/1.489, allocations: 257.1 kB / 0.9931 GB, free: 9.312 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009445/1.49, allocations: 233.8 kB / 0.9933 GB, free: 9.078 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.358e-06/1.49, allocations: 11.94 kB / 0.9933 GB, free: 9.066 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.002486/1.493, allocations: 0.5515 MB / 0.9938 GB, free: 8.5 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.001286/1.494, allocations: 0.8992 MB / 0.9947 GB, free: 7.527 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.021e-05/1.494, allocations: 11.95 kB / 0.9947 GB, free: 7.516 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005212/1.495, allocations: 36.83 kB / 0.9948 GB, free: 7.477 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000841/1.496, allocations: 91.86 kB / 0.9949 GB, free: 7.387 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003015/1.499, allocations: 1.524 MB / 0.9963 GB, free: 5.723 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007749/1.5, allocations: 55.92 kB / 0.9964 GB, free: 5.668 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.943e-05/1.5, allocations: 11.98 kB / 0.9964 GB, free: 5.656 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/1.5, allocations: 5.719 kB / 0.9964 GB, free: 5.652 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002275/1.502, allocations: 0.5034 MB / 0.9969 GB, free: 5.141 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/1.502, allocations: 4.062 kB / 0.9969 GB, free: 5.137 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003121/1.502, allocations: 36.83 kB / 0.9969 GB, free: 5.098 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00073/1.503, allocations: 91.86 kB / 0.997 GB, free: 5.008 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002819/1.506, allocations: 1.501 MB / 0.9985 GB, free: 3.371 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007743/1.507, allocations: 51.84 kB / 0.9985 GB, free: 3.32 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.87e-05/1.507, allocations: 16 kB / 0.9986 GB, free: 3.305 MB / 0.7481 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 () * 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 (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.0007152/1.508, allocations: 244.9 kB / 0.9988 GB, free: 3.055 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001808/1.508, allocations: 23.72 kB / 0.9988 GB, free: 3.031 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002353/1.51, allocations: 496.5 kB / 0.9993 GB, free: 2.535 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/1.51, allocations: 4 kB / 0.9993 GB, free: 2.531 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/1.51, allocations: 0 / 0.9993 GB, free: 2.531 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/1.51, allocations: 0 / 0.9993 GB, free: 2.531 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00157/1.512, allocations: 0.57 MB / 0.9999 GB, free: 1.898 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/1.512, allocations: 4.031 kB / 0.9999 GB, free: 1.895 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007838/1.513, allocations: 83.91 kB / 0.9999 GB, free: 1.812 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002919/1.513, allocations: 36.77 kB / 1 GB, free: 1.773 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.363e-05/1.513, allocations: 8 kB / 1 GB, free: 1.766 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002689/1.516, allocations: 1.424 MB / 1.001 GB, free: 208 kB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/1.516, allocations: 0 / 1.001 GB, free: 208 kB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002362/1.518, allocations: 0.6023 MB / 1.002 GB, free: 15.55 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004416/1.519, allocations: 137 kB / 1.002 GB, free: 15.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001324/1.519, allocations: 7.984 kB / 1.002 GB, free: 15.39 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007183/1.52, allocations: 39.95 kB / 1.002 GB, free: 15.36 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002391/1.52, allocations: 35.94 kB / 1.002 GB, free: 15.32 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/1.52, allocations: 8 kB / 1.002 GB, free: 15.31 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004207/1.52, allocations: 180.4 kB / 1.002 GB, free: 15.13 MB / 0.7637 GB Notification: Performance of sort global known variables: time 4.1e-07/1.52, allocations: 0 / 1.002 GB, free: 15.13 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001624/1.522, allocations: 124 kB / 1.002 GB, free: 15.01 MB / 0.7637 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 (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.003974/1.526, allocations: 1.36 MB / 1.004 GB, free: 13.6 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.004546/1.531, allocations: 1.012 MB / 1.005 GB, free: 12.54 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/1.531, allocations: 0 / 1.005 GB, free: 12.54 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001267/1.532, allocations: 338.8 kB / 1.005 GB, free: 12.2 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008667/1.533, allocations: 40.41 kB / 1.005 GB, free: 12.16 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008417/1.541, allocations: 3.326 MB / 1.008 GB, free: 8.738 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006554/1.542, allocations: 0.7995 MB / 1.009 GB, free: 7.914 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004036/1.542, allocations: 90.2 kB / 1.009 GB, free: 7.824 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002716/1.543, allocations: 83.39 kB / 1.009 GB, free: 7.742 MB / 0.7637 GB Notification: Performance of SimCode: time 2.245e-06/1.543, allocations: 0 / 1.009 GB, free: 7.742 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03694/1.58, allocations: 6.542 MB / 1.016 GB, free: 1.426 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004223/1.58, allocations: 241.1 kB / 1.016 GB, free: 1.176 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.123/4.703, allocations: 0 / 1.016 GB, free: 1.176 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat does not exist to compare? outputFormat=mat