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.001434/0.001434, allocations: 108 kB / 15.6 MB, free: 132 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.001128/0.001128, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.465/1.465, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.781/1.781, allocations: 292.3 MB / 0.5489 GB, free: 13.52 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.001507/0.001508, allocations: 69.64 kB / 0.6716 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2346, allocations: 114.5 MB / 0.7835 GB, free: 13.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004777/0.2394, allocations: 3.063 MB / 0.7865 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002712/0.2421, allocations: 1.727 MB / 0.7882 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.2422, allocations: 4 kB / 0.7882 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000984/0.2433, allocations: 334.6 kB / 0.7885 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004522/0.2437, allocations: 223.1 kB / 0.7887 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004414/0.2442, allocations: 175.5 kB / 0.7889 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003296/0.2445, allocations: 315 kB / 0.7892 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003846/0.2449, allocations: 252.9 kB / 0.7894 GB, free: 7.391 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000173/0.2451, allocations: 131.5 kB / 0.7895 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002957/0.2454, allocations: 159.5 kB / 0.7897 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.459e-05/0.2455, allocations: 20 kB / 0.7897 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004086/0.2459, allocations: 247.5 kB / 0.7899 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.246, allocations: 99.77 kB / 0.79 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.2461, allocations: 119.4 kB / 0.7901 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004854/0.2466, allocations: 426.7 kB / 0.7906 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.2466, allocations: 0 / 0.7906 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2466, allocations: 0 / 0.7906 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.652e-06/0.2467, allocations: 4 kB / 0.7906 GB, free: 6.207 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.0009342/0.2476, allocations: 0.5443 MB / 0.7911 GB, free: 5.617 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.2476, allocations: 12.03 kB / 0.7911 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.475e-05/0.2477, allocations: 58.72 kB / 0.7912 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007355/0.2485, allocations: 96.55 kB / 0.7912 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002862/0.2488, allocations: 248 kB / 0.7915 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.2488, allocations: 16.81 kB / 0.7915 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.653e-05/0.2489, allocations: 32.45 kB / 0.7915 GB, free: 5.113 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005436/0.2494, allocations: 373 kB / 0.7919 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.2495, allocations: 3.938 kB / 0.7919 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.477e-05/0.2495, allocations: 12 kB / 0.7919 GB, free: 4.715 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.701e-05/0.2496, allocations: 36.34 kB / 0.7919 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000451/0.2501, allocations: 309.5 kB / 0.7922 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001686/0.2518, allocations: 1.525 MB / 0.7937 GB, free: 2.699 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00043/0.2522, allocations: 226.4 kB / 0.7939 GB, free: 2.469 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.2524, allocations: 116.8 kB / 0.794 GB, free: 2.352 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001332/0.2525, allocations: 89.09 kB / 0.7941 GB, free: 2.246 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.2526, allocations: 34.56 kB / 0.7942 GB, free: 2.203 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.2526, allocations: 3.938 kB / 0.7942 GB, free: 2.199 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19): time 0.001242/0.2538, allocations: 0.7934 MB / 0.7949 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.611e-05/0.2539, allocations: 51.41 kB / 0.795 GB, free: 1.293 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001722/0.254, allocations: 196.2 kB / 0.7952 GB, free: 1.094 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.2541, allocations: 25.7 kB / 0.7952 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.785e-05/0.2542, allocations: 167.8 kB / 0.7954 GB, free: 0.8945 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.201e-05/0.2542, allocations: 59.11 kB / 0.7954 GB, free: 0.8359 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.281e-05/0.2543, allocations: 65.59 kB / 0.7955 GB, free: 0.7656 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.836e-05/0.2544, allocations: 326.8 kB / 0.7958 GB, free: 448 kB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001704/0.2546, allocations: 119.9 kB / 0.7959 GB, free: 328 kB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/0.2548, allocations: 166.9 kB / 0.7961 GB, free: 140 kB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003934/0.2552, allocations: 297.8 kB / 0.7964 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.2552, allocations: 0 / 0.7964 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000753/0.256, allocations: 418 kB / 0.7968 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.256, allocations: 8 kB / 0.7968 GB, free: 15.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.256, allocations: 3.984 kB / 0.7968 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004137/0.2565, allocations: 104.7 kB / 0.7969 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002453/0.2567, allocations: 51.95 kB / 0.7969 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002007/0.2587, allocations: 1.875 MB / 0.7987 GB, free: 13.22 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002255/0.259, allocations: 19.95 kB / 0.7988 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.259, allocations: 12 kB / 0.7988 GB, free: 13.19 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.0002156/0.2592, allocations: 164.2 kB / 0.7989 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.951e-05/0.2593, allocations: 15.81 kB / 0.7989 GB, free: 13 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005631/0.2599, allocations: 302 kB / 0.7992 GB, free: 12.71 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.2599, allocations: 4 kB / 0.7992 GB, free: 12.7 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.2599, allocations: 0 / 0.7992 GB, free: 12.7 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.2599, allocations: 3.938 kB / 0.7992 GB, free: 12.7 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.2609, allocations: 0.7029 MB / 0.7999 GB, free: 11.94 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.2609, allocations: 4 kB / 0.7999 GB, free: 11.93 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003058/0.2612, allocations: 55.89 kB / 0.8 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.2613, allocations: 7.938 kB / 0.8 GB, free: 11.87 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.013e-05/0.2613, allocations: 7.984 kB / 0.8 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.2613, allocations: 4 kB / 0.8 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2613, allocations: 0 / 0.8 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000621/0.2619, allocations: 0.5087 MB / 0.8005 GB, free: 11.33 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.2621, allocations: 116.8 kB / 0.8006 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.371e-05/0.2621, allocations: 12 kB / 0.8006 GB, free: 11.18 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001913/0.2623, allocations: 15.98 kB / 0.8006 GB, free: 11.17 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.565e-05/0.2623, allocations: 11.92 kB / 0.8007 GB, free: 11.16 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.2624, allocations: 8 kB / 0.8007 GB, free: 11.15 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001421/0.2625, allocations: 144.1 kB / 0.8008 GB, free: 11.01 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.81e-07/0.2625, allocations: 4 kB / 0.8008 GB, free: 11 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.000406/0.2629, allocations: 71.94 kB / 0.8009 GB, free: 10.93 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.001097/0.264, allocations: 1.058 MB / 0.8019 GB, free: 9.84 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0008055/0.2649, allocations: 453 kB / 0.8023 GB, free: 9.391 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.2649, allocations: 0 / 0.8023 GB, free: 9.391 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.2651, allocations: 123.8 kB / 0.8025 GB, free: 9.27 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003873/0.2654, allocations: 40.47 kB / 0.8025 GB, free: 9.23 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003867/0.2693, allocations: 2.88 MB / 0.8053 GB, free: 6.215 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005197/0.2699, allocations: 0.7753 MB / 0.8061 GB, free: 5.414 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001749/0.27, allocations: 53.91 kB / 0.8061 GB, free: 5.363 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.2702, allocations: 67.42 kB / 0.8062 GB, free: 5.297 MB / 0.6231 GB Notification: Performance of SimCode: time 3.21e-07/0.2702, allocations: 0 / 0.8062 GB, free: 5.297 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02519/0.2954, allocations: 4.998 MB / 0.8111 GB, free: 476 kB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.342/9.638, allocations: 20.92 kB / 0.8111 GB, free: 460 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)