Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_0_0_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_0_0_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/Buildings 8.0.0/package.mo): time 1.523/1.523, allocations: 287.4 MB / 302.6 MB, free: 8.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009084/0.0009085, allocations: 177 kB / 371.1 MB, free: 10.8 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.388/1.388, allocations: 205.4 MB / 0.6298 GB, free: 10.5 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000861/0.0008609, allocations: 91.86 kB / 0.7431 GB, free: 6.488 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003742/0.0003744, allocations: 10.88 kB / 0.8662 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1932/0.1936, allocations: 115.3 MB / 0.9787 GB, free: 28.05 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.002982/0.1966, allocations: 2.657 MB / 0.9813 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.00201/0.1987, allocations: 1.611 MB / 0.9829 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.1989, allocations: 8 kB / 0.9829 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001807/0.1991, allocations: 35.7 kB / 0.9829 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004536/0.1995, allocations: 159.3 kB / 0.9831 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004079/0.2, allocations: 131.6 kB / 0.9832 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003307/0.2003, allocations: 386.8 kB / 0.9836 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007787/0.2011, allocations: 0.5204 MB / 0.9841 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.2013, allocations: 107.6 kB / 0.9842 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002457/0.2015, allocations: 151.5 kB / 0.9844 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.733e-05/0.2016, allocations: 8 kB / 0.9844 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002543/0.2018, allocations: 143.8 kB / 0.9845 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.728e-05/0.2019, allocations: 87.77 kB / 0.9846 GB, free: 22 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.031e-05/0.202, allocations: 65.58 kB / 0.9846 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002493/0.2022, allocations: 315.2 kB / 0.9849 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2022, allocations: 0 / 0.9849 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.104e-06/0.2022, allocations: 0 / 0.9849 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.2022, allocations: 3.938 kB / 0.9849 GB, free: 21.62 MB / 0.6198 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.0006931/0.2029, allocations: 0.503 MB / 0.9854 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.203, allocations: 8.031 kB / 0.9854 GB, free: 21.06 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.118e-05/0.203, allocations: 62.72 kB / 0.9855 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006146/0.2037, allocations: 96.55 kB / 0.9856 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002388/0.2039, allocations: 253.7 kB / 0.9858 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/0.2039, allocations: 16.81 kB / 0.9859 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.407e-05/0.204, allocations: 28.48 kB / 0.9859 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004597/0.2045, allocations: 377 kB / 0.9862 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.2045, allocations: 0 / 0.9862 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.2046, allocations: 12 kB / 0.9863 GB, free: 20.16 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.617e-05/0.2047, allocations: 24.42 kB / 0.9863 GB, free: 20.14 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003701/0.205, allocations: 305.5 kB / 0.9866 GB, free: 19.84 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001326/0.2064, allocations: 1.533 MB / 0.9881 GB, free: 18.16 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003552/0.2067, allocations: 230.4 kB / 0.9883 GB, free: 17.92 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.2069, allocations: 115.5 kB / 0.9884 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001111/0.207, allocations: 97.08 kB / 0.9885 GB, free: 17.7 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.917e-05/0.207, allocations: 34.56 kB / 0.9885 GB, free: 17.65 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=18): time 1.323e-06/0.207, allocations: 0 / 0.9885 GB, free: 17.65 MB / 0.6198 GB Notification: Performance of matching and sorting (n=19): time 0.0009783/0.208, allocations: 0.7865 MB / 0.9893 GB, free: 16.81 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.543e-05/0.2081, allocations: 55.41 kB / 0.9893 GB, free: 16.75 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.2082, allocations: 190.7 kB / 0.9895 GB, free: 16.55 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.2082, allocations: 29.7 kB / 0.9896 GB, free: 16.52 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.434e-05/0.2083, allocations: 167.8 kB / 0.9897 GB, free: 16.35 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.64e-05/0.2083, allocations: 63.09 kB / 0.9898 GB, free: 16.29 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.304e-05/0.2083, allocations: 8 kB / 0.9898 GB, free: 16.28 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.618e-05/0.2084, allocations: 330.8 kB / 0.9901 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.2086, allocations: 107.9 kB / 0.9902 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.2087, allocations: 178.9 kB / 0.9904 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002936/0.209, allocations: 295 kB / 0.9906 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.209, allocations: 0 / 0.9906 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005991/0.2096, allocations: 417.8 kB / 0.991 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.2097, allocations: 4 kB / 0.9911 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.2097, allocations: 4 kB / 0.9911 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003601/0.21, allocations: 96.95 kB / 0.9911 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000225/0.2103, allocations: 55.89 kB / 0.9912 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001301/0.2116, allocations: 1.73 MB / 0.9929 GB, free: 12.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.2118, allocations: 15.97 kB / 0.9929 GB, free: 12.88 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.2118, allocations: 8 kB / 0.9929 GB, free: 12.88 MB / 0.6198 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 (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 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.2119, allocations: 165.8 kB / 0.9931 GB, free: 12.7 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.926e-05/0.212, allocations: 15.81 kB / 0.9931 GB, free: 12.69 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000407/0.2124, allocations: 301.4 kB / 0.9934 GB, free: 12.39 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.2124, allocations: 4 kB / 0.9934 GB, free: 12.39 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-06/0.2124, allocations: 3.938 kB / 0.9934 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.2124, allocations: 4 kB / 0.9934 GB, free: 12.38 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006787/0.2131, allocations: 0.7089 MB / 0.9941 GB, free: 11.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.2131, allocations: 0 / 0.9941 GB, free: 11.61 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000281/0.2134, allocations: 59.95 kB / 0.9941 GB, free: 11.55 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.2134, allocations: 0 / 0.9941 GB, free: 11.55 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.2134, allocations: 4 kB / 0.9941 GB, free: 11.55 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.2134, allocations: 3.938 kB / 0.9941 GB, free: 11.54 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.2135, allocations: 4 kB / 0.9941 GB, free: 11.54 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000455/0.2139, allocations: 0.5125 MB / 0.9946 GB, free: 11 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 7.847e-05/0.214, allocations: 116.9 kB / 0.9948 GB, free: 10.87 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.234e-05/0.214, allocations: 4 kB / 0.9948 GB, free: 10.87 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.2142, allocations: 19.86 kB / 0.9948 GB, free: 10.85 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.079e-05/0.2143, allocations: 16.05 kB / 0.9948 GB, free: 10.83 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.2143, allocations: 12.06 kB / 0.9948 GB, free: 10.82 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.926e-05/0.2144, allocations: 144 kB / 0.9949 GB, free: 10.68 MB / 0.6198 GB Notification: Performance of sort global known variables: time 9.82e-07/0.2144, allocations: 0 / 0.9949 GB, free: 10.68 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003184/0.2147, allocations: 71.94 kB / 0.995 GB, free: 10.61 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006535/0.2154, allocations: 1.066 MB / 0.9961 GB, free: 9.512 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005881/0.216, allocations: 417.2 kB / 0.9965 GB, free: 9.094 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.216, allocations: 448 / 0.9965 GB, free: 9.094 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.2161, allocations: 131.7 kB / 0.9966 GB, free: 8.965 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003728/0.2165, allocations: 33.22 kB / 0.9966 GB, free: 8.934 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.2185, allocations: 1.672 MB / 0.9982 GB, free: 7.18 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001851/0.2187, allocations: 0.7753 MB / 0.999 GB, free: 6.379 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001652/0.2189, allocations: 61.84 kB / 0.9991 GB, free: 6.32 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.219, allocations: 61.05 kB / 0.9991 GB, free: 6.266 MB / 0.6198 GB Notification: Performance of SimCode: time 2.01e-07/0.219, allocations: 4 kB / 0.9991 GB, free: 6.262 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03315/0.2522, allocations: 4.662 MB / 1.004 GB, free: 1.812 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002274/0.2525, allocations: 224.6 kB / 1.004 GB, free: 1.578 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.705/1.958, allocations: 0 / 1.004 GB, free: 1.578 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)