Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.404/1.404, allocations: 252 MB / 267.3 MB, free: 10.86 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 167.2 kB / 327 MB, free: 2.113 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.029/2.029, allocations: 205.4 MB / 0.578 GB, free: 20.42 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008766/0.0008768, allocations: 93.3 kB / 0.6826 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003597/0.0003598, allocations: 8.906 kB / 0.7971 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2544, allocations: 106.4 MB / 0.9009 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003978/0.2585, allocations: 2.749 MB / 0.9036 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002635/0.2612, allocations: 1.711 MB / 0.9053 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002594/0.2615, allocations: 3.938 kB / 0.9053 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002328/0.2617, allocations: 43.7 kB / 0.9053 GB, free: 59.17 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0006569/0.2624, allocations: 195.3 kB / 0.9055 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005498/0.263, allocations: 159.7 kB / 0.9057 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0004005/0.2634, allocations: 470.7 kB / 0.9061 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008088/0.2642, allocations: 0.528 MB / 0.9066 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001706/0.2644, allocations: 111.6 kB / 0.9067 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002798/0.2647, allocations: 151.5 kB / 0.9069 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.7e-05/0.2647, allocations: 8 kB / 0.9069 GB, free: 57.53 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004333/0.2651, allocations: 291.4 kB / 0.9072 GB, free: 57.25 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.000134/0.2653, allocations: 83.78 kB / 0.9073 GB, free: 57.16 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.2654, allocations: 141.1 kB / 0.9074 GB, free: 57.02 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004053/0.2658, allocations: 422.9 kB / 0.9078 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2658, allocations: 0 / 0.9078 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.454e-06/0.2658, allocations: 0 / 0.9078 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.2659, allocations: 0 / 0.9078 GB, free: 56.61 MB / 0.6042 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.0008168/0.2667, allocations: 0.507 MB / 0.9083 GB, free: 56.05 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.2667, allocations: 11.97 kB / 0.9083 GB, free: 56.04 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.732e-05/0.2668, allocations: 58.73 kB / 0.9084 GB, free: 55.97 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006864/0.2675, allocations: 92.55 kB / 0.9084 GB, free: 55.88 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003577/0.2679, allocations: 258.1 kB / 0.9087 GB, free: 55.59 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.088e-05/0.2679, allocations: 24.73 kB / 0.9087 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/0.268, allocations: 24.55 kB / 0.9087 GB, free: 55.54 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005001/0.2685, allocations: 373 kB / 0.9091 GB, free: 55.16 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.2686, allocations: 3.984 kB / 0.9091 GB, free: 55.15 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.977e-05/0.2686, allocations: 12 kB / 0.9091 GB, free: 55.14 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.054e-05/0.2687, allocations: 28.36 kB / 0.9091 GB, free: 55.11 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004038/0.2691, allocations: 309.5 kB / 0.9094 GB, free: 54.81 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001514/0.2706, allocations: 1.533 MB / 0.9109 GB, free: 53.12 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003726/0.271, allocations: 230.3 kB / 0.9111 GB, free: 52.89 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/0.2712, allocations: 112.8 kB / 0.9113 GB, free: 52.78 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001502/0.2713, allocations: 89.09 kB / 0.9113 GB, free: 52.67 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.318e-05/0.2714, allocations: 38.56 kB / 0.9114 GB, free: 52.62 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=18): time 1.994e-06/0.2714, allocations: 0 / 0.9114 GB, free: 52.62 MB / 0.6042 GB Notification: Performance of matching and sorting (n=19): time 0.001115/0.2725, allocations: 0.7853 MB / 0.9121 GB, free: 51.79 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.671e-05/0.2725, allocations: 59.34 kB / 0.9122 GB, free: 51.72 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.2727, allocations: 191.2 kB / 0.9124 GB, free: 51.52 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.2727, allocations: 25.7 kB / 0.9124 GB, free: 51.49 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 7.487e-05/0.2728, allocations: 171.8 kB / 0.9126 GB, free: 51.32 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.564e-05/0.2728, allocations: 70.98 kB / 0.9126 GB, free: 51.25 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.52e-05/0.2729, allocations: 4 kB / 0.9126 GB, free: 51.24 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.303e-05/0.2729, allocations: 330.8 kB / 0.913 GB, free: 50.91 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001381/0.2731, allocations: 115.9 kB / 0.9131 GB, free: 50.8 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000184/0.2733, allocations: 174.9 kB / 0.9132 GB, free: 50.61 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003133/0.2736, allocations: 296.7 kB / 0.9135 GB, free: 50.3 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.2736, allocations: 0 / 0.9135 GB, free: 50.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006206/0.2742, allocations: 417.8 kB / 0.9139 GB, free: 49.88 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.2743, allocations: 7.938 kB / 0.9139 GB, free: 49.87 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.2743, allocations: 4 kB / 0.9139 GB, free: 49.87 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003843/0.2747, allocations: 96.95 kB / 0.914 GB, free: 49.77 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002392/0.2749, allocations: 55.89 kB / 0.9141 GB, free: 49.71 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001384/0.2763, allocations: 1.734 MB / 0.9158 GB, free: 47.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002041/0.2765, allocations: 20 kB / 0.9158 GB, free: 47.82 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.2765, allocations: 8 kB / 0.9158 GB, free: 47.82 MB / 0.6042 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.000148/0.2767, allocations: 165.8 kB / 0.9159 GB, free: 47.64 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.981e-05/0.2767, allocations: 15.81 kB / 0.916 GB, free: 47.63 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003987/0.2772, allocations: 297.4 kB / 0.9162 GB, free: 47.34 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.2772, allocations: 0 / 0.9162 GB, free: 47.34 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.2772, allocations: 4 kB / 0.9163 GB, free: 47.34 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.2772, allocations: 0 / 0.9163 GB, free: 47.34 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007086/0.2779, allocations: 0.7029 MB / 0.9169 GB, free: 46.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2779, allocations: 0 / 0.9169 GB, free: 46.57 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000277/0.2782, allocations: 59.95 kB / 0.917 GB, free: 46.51 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.2782, allocations: 3.938 kB / 0.917 GB, free: 46.51 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.2782, allocations: 4 kB / 0.917 GB, free: 46.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.2783, allocations: 0 / 0.917 GB, free: 46.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2783, allocations: 7.938 kB / 0.917 GB, free: 46.5 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004661/0.2787, allocations: 0.5163 MB / 0.9175 GB, free: 45.96 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 8.412e-05/0.2788, allocations: 116.9 kB / 0.9176 GB, free: 45.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.045e-05/0.2789, allocations: 8 kB / 0.9176 GB, free: 45.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/0.279, allocations: 15.92 kB / 0.9176 GB, free: 45.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.901e-05/0.2791, allocations: 15.92 kB / 0.9177 GB, free: 45.79 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.2791, allocations: 4 kB / 0.9177 GB, free: 45.78 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001014/0.2792, allocations: 152.1 kB / 0.9178 GB, free: 45.63 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2792, allocations: 0 / 0.9178 GB, free: 45.63 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003229/0.2796, allocations: 64 kB / 0.9179 GB, free: 45.57 MB / 0.6042 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.0006993/0.2803, allocations: 1.066 MB / 0.9189 GB, free: 44.47 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0007217/0.281, allocations: 426.5 kB / 0.9193 GB, free: 44.04 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.281, allocations: 0 / 0.9193 GB, free: 44.04 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001761/0.2812, allocations: 115.9 kB / 0.9194 GB, free: 43.93 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004422/0.2817, allocations: 40.47 kB / 0.9195 GB, free: 43.89 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003324/0.285, allocations: 3.025 MB / 0.9224 GB, free: 40.73 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.2853, allocations: 0.7675 MB / 0.9232 GB, free: 39.94 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001913/0.2855, allocations: 57.91 kB / 0.9232 GB, free: 39.88 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.2857, allocations: 67.41 kB / 0.9233 GB, free: 39.82 MB / 0.6042 GB Notification: Performance of SimCode: time 1.152e-06/0.2857, allocations: 0 / 0.9233 GB, free: 39.82 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01611/0.3018, allocations: 4.685 MB / 0.9279 GB, free: 35.35 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002077/0.302, allocations: 260.9 kB / 0.9281 GB, free: 35.09 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.901/2.203, allocations: 6.594 kB / 0.9281 GB, free: 35.08 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)