Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.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.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",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.001064/0.001064, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001114/0.001114, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.308/1.308, allocations: 205.1 MB / 222 MB, free: 4.75 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.652/1.652, allocations: 292.3 MB / 0.5484 GB, free: 13.65 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.001272/0.001273, allocations: 64.06 kB / 0.6709 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1976/0.1989, allocations: 114.5 MB / 0.7828 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.00463/0.2036, allocations: 3.124 MB / 0.7859 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002632/0.2063, allocations: 1.731 MB / 0.7875 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.2064, allocations: 4 kB / 0.7875 GB, free: 9 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0009128/0.2073, allocations: 310.6 kB / 0.7878 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004106/0.2077, allocations: 207.2 kB / 0.788 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.2081, allocations: 159.7 kB / 0.7882 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003947/0.2085, allocations: 466.8 kB / 0.7886 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004154/0.2089, allocations: 244.8 kB / 0.7889 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/0.2091, allocations: 115.6 kB / 0.789 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002717/0.2094, allocations: 167.4 kB / 0.7891 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.184e-05/0.2094, allocations: 12 kB / 0.7892 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004022/0.2098, allocations: 295.4 kB / 0.7894 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.85e-05/0.2099, allocations: 95.75 kB / 0.7895 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.2101, allocations: 119.4 kB / 0.7896 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004616/0.2105, allocations: 438.6 kB / 0.7901 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2105, allocations: 0 / 0.7901 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of FrontEnd: time 8.92e-07/0.2105, allocations: 0 / 0.7901 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.2106, allocations: 0 / 0.7901 GB, free: 6.426 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0008611/0.2114, allocations: 0.5419 MB / 0.7906 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.2115, allocations: 11.97 kB / 0.7906 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.535e-05/0.2115, allocations: 58.72 kB / 0.7907 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000691/0.2122, allocations: 96.55 kB / 0.7907 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000271/0.2125, allocations: 256 kB / 0.791 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.2125, allocations: 12.81 kB / 0.791 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.793e-05/0.2126, allocations: 28.47 kB / 0.791 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005066/0.2131, allocations: 373 kB / 0.7914 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.2132, allocations: 3.938 kB / 0.7914 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.915e-05/0.2132, allocations: 15.98 kB / 0.7914 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.152e-05/0.2133, allocations: 28.42 kB / 0.7914 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004707/0.2138, allocations: 305.5 kB / 0.7917 GB, free: 4.605 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.2155, allocations: 1.533 MB / 0.7932 GB, free: 2.918 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004123/0.216, allocations: 230.5 kB / 0.7934 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.2161, allocations: 112.8 kB / 0.7935 GB, free: 2.57 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001295/0.2163, allocations: 89.09 kB / 0.7936 GB, free: 2.465 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.2163, allocations: 30.56 kB / 0.7937 GB, free: 2.426 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.212e-06/0.2163, allocations: 4 kB / 0.7937 GB, free: 2.422 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19): time 0.001161/0.2175, allocations: 0.7968 MB / 0.7944 GB, free: 1.578 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.885e-05/0.2175, allocations: 59.34 kB / 0.7945 GB, free: 1.508 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.2177, allocations: 186.6 kB / 0.7947 GB, free: 1.316 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.239e-05/0.2177, allocations: 29.7 kB / 0.7947 GB, free: 1.281 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.599e-05/0.2178, allocations: 167.8 kB / 0.7949 GB, free: 1.113 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.649e-05/0.2178, allocations: 67.09 kB / 0.7949 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.681e-05/0.2179, allocations: 57.59 kB / 0.795 GB, free: 0.9844 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.218, allocations: 334.8 kB / 0.7953 GB, free: 0.6484 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001606/0.2182, allocations: 111.9 kB / 0.7954 GB, free: 0.5391 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.2184, allocations: 172.3 kB / 0.7956 GB, free: 360 kB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003647/0.2188, allocations: 296.6 kB / 0.7959 GB, free: 44 kB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.2188, allocations: 4 kB / 0.7959 GB, free: 40 kB / 0.6075 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007117/0.2195, allocations: 424.2 kB / 0.7963 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.2195, allocations: 4 kB / 0.7963 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.2196, allocations: 4 kB / 0.7963 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003871/0.2199, allocations: 96.7 kB / 0.7964 GB, free: 15.51 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002279/0.2202, allocations: 52.08 kB / 0.7964 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001724/0.2219, allocations: 1.741 MB / 0.7981 GB, free: 13.58 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002158/0.2221, allocations: 15.98 kB / 0.7981 GB, free: 13.56 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.2222, allocations: 4 kB / 0.7981 GB, free: 13.56 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001712/0.2224, allocations: 165.6 kB / 0.7983 GB, free: 13.39 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.821e-05/0.2224, allocations: 15.81 kB / 0.7983 GB, free: 13.37 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004687/0.2229, allocations: 303.5 kB / 0.7986 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.2229, allocations: 8 kB / 0.7986 GB, free: 13.06 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.2229, allocations: 3.938 kB / 0.7986 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.2229, allocations: 0 / 0.7986 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008133/0.2237, allocations: 0.6989 MB / 0.7993 GB, free: 12.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2238, allocations: 0 / 0.7993 GB, free: 12.3 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003008/0.2241, allocations: 63.95 kB / 0.7994 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.2241, allocations: 4 kB / 0.7994 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/0.2241, allocations: 3.984 kB / 0.7994 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.2241, allocations: 4 kB / 0.7994 GB, free: 12.22 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.2241, allocations: 3.938 kB / 0.7994 GB, free: 12.22 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000558/0.2247, allocations: 0.515 MB / 0.7999 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 9.955e-05/0.2248, allocations: 116.9 kB / 0.8 GB, free: 11.55 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.38e-05/0.2248, allocations: 4 kB / 0.8 GB, free: 11.55 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/0.225, allocations: 23.86 kB / 0.8 GB, free: 11.52 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.306e-05/0.225, allocations: 7.984 kB / 0.8 GB, free: 11.52 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.2251, allocations: 8 kB / 0.8 GB, free: 11.51 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001104/0.2252, allocations: 140.1 kB / 0.8002 GB, free: 11.37 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2252, allocations: 0 / 0.8002 GB, free: 11.37 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003392/0.2255, allocations: 68 kB / 0.8002 GB, free: 11.3 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008423/0.2264, allocations: 1.071 MB / 0.8013 GB, free: 10.2 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0006465/0.227, allocations: 426.6 kB / 0.8017 GB, free: 9.77 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2271, allocations: 0 / 0.8017 GB, free: 9.77 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001589/0.2272, allocations: 122.7 kB / 0.8018 GB, free: 9.652 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003546/0.2276, allocations: 31.98 kB / 0.8018 GB, free: 9.621 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003495/0.2311, allocations: 2.963 MB / 0.8047 GB, free: 6.531 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003177/0.2314, allocations: 0.7753 MB / 0.8055 GB, free: 5.727 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000169/0.2316, allocations: 65.83 kB / 0.8055 GB, free: 5.664 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.2317, allocations: 63.41 kB / 0.8056 GB, free: 5.602 MB / 0.6231 GB Notification: Performance of SimCode: time 1.403e-06/0.2317, allocations: 4 kB / 0.8056 GB, free: 5.598 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01466/0.2464, allocations: 4.793 MB / 0.8103 GB, free: 0.9922 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001828/0.2466, allocations: 247.1 kB / 0.8105 GB, free: 0.7305 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.706/1.953, allocations: 3.938 kB / 0.8105 GB, free: 0.7266 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)