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.001586/0.001586, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002011/0.002012, allocations: 198.2 kB / 16.64 MB, free: 6.449 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.716/1.716, allocations: 205.1 MB / 222.5 MB, free: 4.578 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.726/1.726, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001416/0.001416, allocations: 70 kB / 0.6718 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2254/0.2268, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004738/0.2316, allocations: 3.074 MB / 0.7866 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00277/0.2344, allocations: 1.73 MB / 0.7883 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001537/0.2346, allocations: 4 kB / 0.7883 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0009881/0.2357, allocations: 330.7 kB / 0.7887 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004624/0.2361, allocations: 211.1 kB / 0.7889 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000498/0.2366, allocations: 190.5 kB / 0.789 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000374/0.237, allocations: 319 kB / 0.7893 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004344/0.2375, allocations: 241 kB / 0.7896 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001876/0.2377, allocations: 135.6 kB / 0.7897 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003206/0.238, allocations: 159.4 kB / 0.7898 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.182e-05/0.238, allocations: 20 kB / 0.7899 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003932/0.2384, allocations: 243.5 kB / 0.7901 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.2386, allocations: 103.8 kB / 0.7902 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001245/0.2387, allocations: 119.4 kB / 0.7903 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004721/0.2392, allocations: 426.7 kB / 0.7907 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.2392, allocations: 8 kB / 0.7907 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2392, allocations: 0 / 0.7907 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.702e-06/0.2392, allocations: 0 / 0.7907 GB, free: 5.973 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.0008821/0.2401, allocations: 0.5458 MB / 0.7913 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.2401, allocations: 12.02 kB / 0.7913 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.92e-05/0.2402, allocations: 54.73 kB / 0.7913 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007034/0.2409, allocations: 92.55 kB / 0.7914 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003074/0.2412, allocations: 264 kB / 0.7917 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.2413, allocations: 12.81 kB / 0.7917 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.268e-05/0.2414, allocations: 28.47 kB / 0.7917 GB, free: 4.875 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005427/0.2419, allocations: 376.9 kB / 0.7921 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.2419, allocations: 0 / 0.7921 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.027e-05/0.242, allocations: 11.98 kB / 0.7921 GB, free: 4.477 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-05/0.2421, allocations: 32.41 kB / 0.7921 GB, free: 4.445 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004318/0.2425, allocations: 309.5 kB / 0.7924 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001631/0.2442, allocations: 1.525 MB / 0.7939 GB, free: 2.465 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004013/0.2446, allocations: 226.4 kB / 0.7941 GB, free: 2.234 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.2447, allocations: 116.8 kB / 0.7942 GB, free: 2.117 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001407/0.2449, allocations: 89.09 kB / 0.7943 GB, free: 2.012 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.2449, allocations: 34.56 kB / 0.7943 GB, free: 1.969 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.573e-06/0.2449, allocations: 0 / 0.7943 GB, free: 1.969 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19): time 0.001193/0.2461, allocations: 0.7957 MB / 0.7951 GB, free: 1.125 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.2462, allocations: 63.33 kB / 0.7952 GB, free: 1.051 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001739/0.2464, allocations: 192.2 kB / 0.7954 GB, free: 0.8555 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.18e-05/0.2464, allocations: 29.7 kB / 0.7954 GB, free: 0.8203 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.491e-05/0.2465, allocations: 163.8 kB / 0.7955 GB, free: 0.6562 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.838e-05/0.2465, allocations: 67.08 kB / 0.7956 GB, free: 0.5898 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.007e-05/0.2466, allocations: 57.59 kB / 0.7957 GB, free: 0.5273 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.962e-05/0.2467, allocations: 334.8 kB / 0.796 GB, free: 196 kB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.2469, allocations: 111.9 kB / 0.7961 GB, free: 84 kB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001992/0.2471, allocations: 159 kB / 0.7962 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003613/0.2475, allocations: 305.3 kB / 0.7965 GB, free: 15.59 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.2475, allocations: 0 / 0.7965 GB, free: 15.59 MB / 0.6231 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007033/0.2482, allocations: 417.8 kB / 0.7969 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.2482, allocations: 8 kB / 0.7969 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.2482, allocations: 0 / 0.7969 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004058/0.2487, allocations: 101 kB / 0.797 GB, free: 15.06 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002446/0.2489, allocations: 51.89 kB / 0.7971 GB, free: 15.01 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00181/0.2507, allocations: 1.871 MB / 0.7989 GB, free: 13 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002175/0.251, allocations: 23.94 kB / 0.7989 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.251, allocations: 8 kB / 0.7989 GB, free: 12.96 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.0001615/0.2512, allocations: 167.9 kB / 0.7991 GB, free: 12.79 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.547e-05/0.2512, allocations: 15.81 kB / 0.7991 GB, free: 12.78 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004476/0.2517, allocations: 291.4 kB / 0.7994 GB, free: 12.49 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.2517, allocations: 4 kB / 0.7994 GB, free: 12.48 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.2517, allocations: 0 / 0.7994 GB, free: 12.48 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.2517, allocations: 7.938 kB / 0.7994 GB, free: 12.48 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008258/0.2525, allocations: 0.7019 MB / 0.8001 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2525, allocations: 192 / 0.8001 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002919/0.2528, allocations: 67.89 kB / 0.8002 GB, free: 11.65 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.2529, allocations: 3.938 kB / 0.8002 GB, free: 11.64 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.2529, allocations: 4 kB / 0.8002 GB, free: 11.64 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.2529, allocations: 0 / 0.8002 GB, free: 11.64 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.2529, allocations: 7.984 kB / 0.8002 GB, free: 11.63 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005833/0.2535, allocations: 0.5173 MB / 0.8007 GB, free: 11.1 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.2536, allocations: 120.7 kB / 0.8008 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.454e-05/0.2536, allocations: 8 kB / 0.8008 GB, free: 10.95 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/0.2538, allocations: 11.98 kB / 0.8008 GB, free: 10.94 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.172e-05/0.2539, allocations: 12.05 kB / 0.8008 GB, free: 10.93 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.2539, allocations: 8 kB / 0.8008 GB, free: 10.92 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001281/0.254, allocations: 144.1 kB / 0.801 GB, free: 10.78 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.5e-07/0.254, allocations: 0 / 0.801 GB, free: 10.78 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003757/0.2544, allocations: 68 kB / 0.801 GB, free: 10.71 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.0008964/0.2553, allocations: 1.062 MB / 0.8021 GB, free: 9.617 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0007506/0.2561, allocations: 430.2 kB / 0.8025 GB, free: 9.184 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.2561, allocations: 448 / 0.8025 GB, free: 9.184 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001572/0.2562, allocations: 123.9 kB / 0.8026 GB, free: 9.062 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003898/0.2566, allocations: 39.91 kB / 0.8026 GB, free: 9.023 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003643/0.2603, allocations: 2.895 MB / 0.8055 GB, free: 5.992 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.2607, allocations: 0.7792 MB / 0.8062 GB, free: 5.188 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001744/0.2609, allocations: 61.89 kB / 0.8063 GB, free: 5.129 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.261, allocations: 59.42 kB / 0.8063 GB, free: 5.07 MB / 0.6231 GB Notification: Performance of SimCode: time 1.232e-06/0.261, allocations: 0 / 0.8063 GB, free: 5.07 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02254/0.2835, allocations: 5.034 MB / 0.8113 GB, free: 224 kB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.453/9.736, allocations: 10.25 kB / 0.8113 GB, free: 220 kB / 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-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)