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.0009399/0.00094, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001108/0.001108, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 223.2 MB / 240 MB, free: 5.223 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.727/2.727, allocations: 409.4 MB / 0.684 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005576/0.0005578, allocations: 12 kB / 0.8378 GB, free: 6.484 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8126/0.8131, allocations: 146.8 MB / 0.9811 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003842/0.817, allocations: 2.621 MB / 0.9837 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002509/0.8196, allocations: 1.618 MB / 0.9853 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.8197, allocations: 4 kB / 0.9853 GB, free: 1.988 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002011/0.8199, allocations: 31.72 kB / 0.9853 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005247/0.8205, allocations: 155.3 kB / 0.9855 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005093/0.821, allocations: 187.5 kB / 0.9856 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004547/0.8215, allocations: 418.7 kB / 0.986 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008902/0.8224, allocations: 389.5 kB / 0.9864 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002249/0.8226, allocations: 123.5 kB / 0.9865 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003079/0.8229, allocations: 167.4 kB / 0.9867 GB, free: 0.5234 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.572e-05/0.823, allocations: 12 kB / 0.9867 GB, free: 0.5117 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002877/0.8233, allocations: 143.8 kB / 0.9868 GB, free: 380 kB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.8234, allocations: 79.78 kB / 0.9869 GB, free: 300 kB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.884e-05/0.8235, allocations: 73.58 kB / 0.987 GB, free: 220 kB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004225/0.8239, allocations: 345.4 kB / 0.9873 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.8239, allocations: 0 / 0.9873 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of FrontEnd: time 3.296e-06/0.8239, allocations: 0 / 0.9873 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 9.679e-06/0.8239, allocations: 4 kB / 0.9873 GB, free: 15.87 MB / 0.7481 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.001361/0.8253, allocations: 0.6017 MB / 0.9879 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.8254, allocations: 12.03 kB / 0.9879 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.556e-05/0.8255, allocations: 62.44 kB / 0.988 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007104/0.8262, allocations: 95.53 kB / 0.9881 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003654/0.8266, allocations: 266.5 kB / 0.9883 GB, free: 14.74 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.8266, allocations: 12.44 kB / 0.9883 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.888e-05/0.8267, allocations: 31.95 kB / 0.9884 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007991/0.8275, allocations: 422.5 kB / 0.9888 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.8275, allocations: 3.938 kB / 0.9888 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.294e-05/0.8275, allocations: 11.98 kB / 0.9888 GB, free: 14.24 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.687e-05/0.8276, allocations: 28.36 kB / 0.9888 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008619/0.8285, allocations: 408.7 kB / 0.9892 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.8304, allocations: 1.619 MB / 0.9908 GB, free: 12.07 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.8315, allocations: 493.1 kB / 0.9912 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004155/0.832, allocations: 205.6 kB / 0.9914 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001588/0.8321, allocations: 89.09 kB / 0.9915 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005613/0.8327, allocations: 282.5 kB / 0.9918 GB, free: 10.96 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=27): time 1.903e-06/0.8327, allocations: 3.938 kB / 0.9918 GB, free: 10.95 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28): time 0.001918/0.8346, allocations: 0.7767 MB / 0.9926 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.536e-05/0.8347, allocations: 89.05 kB / 0.9926 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002361/0.835, allocations: 228.9 kB / 0.9929 GB, free: 9.812 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.404e-05/0.835, allocations: 29.7 kB / 0.9929 GB, free: 9.777 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001262/0.8352, allocations: 164.4 kB / 0.993 GB, free: 9.613 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 8.718e-05/0.8352, allocations: 94.66 kB / 0.9931 GB, free: 9.52 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.105e-05/0.8353, allocations: 4 kB / 0.9931 GB, free: 9.516 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.8354, allocations: 334.8 kB / 0.9935 GB, free: 9.18 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003965/0.8358, allocations: 188.1 kB / 0.9936 GB, free: 8.996 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004552/0.8363, allocations: 257.1 kB / 0.9939 GB, free: 8.715 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000458/0.8368, allocations: 233.8 kB / 0.9941 GB, free: 8.48 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-06/0.8368, allocations: 0 / 0.9941 GB, free: 8.48 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001175/0.838, allocations: 0.5594 MB / 0.9947 GB, free: 7.906 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001551/0.8381, allocations: 183.4 kB / 0.9948 GB, free: 7.688 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.8381, allocations: 4 kB / 0.9948 GB, free: 7.684 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000239/0.8384, allocations: 40.83 kB / 0.9949 GB, free: 7.641 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000387/0.8388, allocations: 87.86 kB / 0.995 GB, free: 7.555 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001439/0.8402, allocations: 1.505 MB / 0.9964 GB, free: 5.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003011/0.8405, allocations: 55.8 kB / 0.9965 GB, free: 5.855 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.834e-05/0.8406, allocations: 8 kB / 0.9965 GB, free: 5.848 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 8.195e-06/0.8406, allocations: 5.562 kB / 0.9965 GB, free: 5.844 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001046/0.8417, allocations: 0.5112 MB / 0.997 GB, free: 5.324 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.8417, allocations: 0 / 0.997 GB, free: 5.324 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001198/0.8418, allocations: 44.75 kB / 0.997 GB, free: 5.277 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/0.8422, allocations: 92.03 kB / 0.9971 GB, free: 5.188 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/0.8433, allocations: 1.473 MB / 0.9986 GB, free: 3.578 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002656/0.8436, allocations: 55.86 kB / 0.9986 GB, free: 3.523 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.8436, allocations: 12 kB / 0.9986 GB, free: 3.512 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.0002399/0.8439, allocations: 243 kB / 0.9989 GB, free: 3.266 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.865e-05/0.844, allocations: 23.72 kB / 0.9989 GB, free: 3.242 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.845, allocations: 496.4 kB / 0.9994 GB, free: 2.746 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.845, allocations: 4 kB / 0.9994 GB, free: 2.742 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.845, allocations: 0 / 0.9994 GB, free: 2.742 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.845, allocations: 4 kB / 0.9994 GB, free: 2.738 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006917/0.8457, allocations: 0.5699 MB / 0.9999 GB, free: 2.105 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.8457, allocations: 7.922 kB / 0.9999 GB, free: 2.098 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003743/0.8461, allocations: 83.98 kB / 1 GB, free: 2.016 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001153/0.8462, allocations: 41.06 kB / 1 GB, free: 1.973 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.37e-05/0.8463, allocations: 4 kB / 1 GB, free: 1.969 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001281/0.8476, allocations: 1.409 MB / 1.001 GB, free: 432 kB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.8476, allocations: 4.031 kB / 1.001 GB, free: 428 kB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.8486, allocations: 0.5582 MB / 1.002 GB, free: 15.83 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/0.8488, allocations: 140.7 kB / 1.002 GB, free: 15.68 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.8489, allocations: 8 kB / 1.002 GB, free: 15.67 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003383/0.8492, allocations: 39.95 kB / 1.002 GB, free: 15.63 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.8494, allocations: 35.83 kB / 1.002 GB, free: 15.59 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-05/0.8494, allocations: 19.98 kB / 1.002 GB, free: 15.57 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002292/0.8497, allocations: 172.5 kB / 1.002 GB, free: 15.4 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.91e-07/0.8497, allocations: 0 / 1.002 GB, free: 15.4 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0006134/0.8503, allocations: 124 kB / 1.002 GB, free: 15.28 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.001695/0.852, allocations: 1.114 MB / 1.004 GB, free: 14.13 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002554/0.8546, allocations: 1.016 MB / 1.005 GB, free: 13.06 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.8546, allocations: 0 / 1.005 GB, free: 13.06 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0008531/0.8555, allocations: 342.8 kB / 1.005 GB, free: 12.71 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005941/0.8561, allocations: 44.41 kB / 1.005 GB, free: 12.67 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004768/0.8609, allocations: 1.976 MB / 1.007 GB, free: 10.62 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004555/0.8613, allocations: 0.7878 MB / 1.008 GB, free: 9.805 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004429/0.8618, allocations: 94.33 kB / 1.008 GB, free: 9.715 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/0.8621, allocations: 87.41 kB / 1.008 GB, free: 9.629 MB / 0.7637 GB Notification: Performance of SimCode: time 1.112e-06/0.8621, allocations: 0 / 1.008 GB, free: 9.629 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02418/0.8863, allocations: 6.559 MB / 1.014 GB, free: 3.301 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/0.8865, allocations: 247.3 kB / 1.014 GB, free: 3.047 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.979/2.866, allocations: 0 / 1.014 GB, free: 3.047 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