Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_6_0_0_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.275/4.275, allocations: 433.2 MB / 440.7 MB, free: 10.49 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.673e-05/2.686e-05, allocations: 4 kB / 0.5325 GB, free: 1.875 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6209/0.621, allocations: 98.73 MB / 0.6289 GB, free: 15.81 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2944/0.9154, allocations: 145.8 MB / 0.7713 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003695/0.9158, allocations: 79.95 kB / 0.7714 GB, free: 13.73 MB / 0.6511 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.03572/0.9516, allocations: 9.446 MB / 0.7806 GB, free: 4.152 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.784e-06/0.9516, allocations: 0 / 0.7806 GB, free: 4.152 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.527e-05/0.9516, allocations: 4 kB / 0.7806 GB, free: 4.148 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006445/0.9523, allocations: 418.3 kB / 0.781 GB, free: 3.691 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/0.9524, allocations: 12.02 kB / 0.781 GB, free: 3.68 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005976/0.953, allocations: 52.17 kB / 0.781 GB, free: 3.629 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003144/0.9533, allocations: 214.8 kB / 0.7813 GB, free: 3.379 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.9533, allocations: 4 kB / 0.7813 GB, free: 3.375 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.229e-05/0.9534, allocations: 8 kB / 0.7813 GB, free: 3.367 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003499/0.9537, allocations: 128.2 kB / 0.7814 GB, free: 3.242 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004218/0.9542, allocations: 198.5 kB / 0.7816 GB, free: 3.027 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.9542, allocations: 0 / 0.7816 GB, free: 3.027 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.576e-05/0.9542, allocations: 7.938 kB / 0.7816 GB, free: 3.02 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-05/0.9543, allocations: 24.22 kB / 0.7816 GB, free: 2.996 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.9557, allocations: 1.076 MB / 0.7827 GB, free: 1.801 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 7.898e-05/0.9558, allocations: 34.52 kB / 0.7827 GB, free: 1.758 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.181e-05/0.9559, allocations: 16.94 kB / 0.7827 GB, free: 1.738 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.163e-05/0.9559, allocations: 0 / 0.7827 GB, free: 1.738 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.434e-05/0.9559, allocations: 34.56 kB / 0.7827 GB, free: 1.695 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=3): time 1.783e-06/0.9559, allocations: 0 / 0.7827 GB, free: 1.695 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3): time 0.0001998/0.9562, allocations: 53.59 kB / 0.7828 GB, free: 1.637 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.9562, allocations: 51.41 kB / 0.7828 GB, free: 1.574 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001692/0.9564, allocations: 135.5 kB / 0.783 GB, free: 1.434 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.9564, allocations: 29.64 kB / 0.783 GB, free: 1.398 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.9565, allocations: 159.2 kB / 0.7831 GB, free: 1.238 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 1.162e-05/0.9566, allocations: 3.906 kB / 0.7832 GB, free: 1.234 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.271e-06/0.9566, allocations: 0 / 0.7832 GB, free: 1.234 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.9567, allocations: 322.8 kB / 0.7835 GB, free: 0.9102 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.383e-05/0.9568, allocations: 12 kB / 0.7835 GB, free: 0.8984 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/0.9569, allocations: 89.44 kB / 0.7836 GB, free: 0.7773 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.686e-05/0.957, allocations: 31.92 kB / 0.7836 GB, free: 0.7461 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.957, allocations: 0 / 0.7836 GB, free: 0.7461 MB / 0.6511 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002814/0.9573, allocations: 121.3 kB / 0.7837 GB, free: 0.6211 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004216/0.9578, allocations: 0.9604 MB / 0.7846 GB, free: 15.59 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.9578, allocations: 4 kB / 0.7846 GB, free: 15.59 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/0.9578, allocations: 11.98 kB / 0.7847 GB, free: 15.57 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.958, allocations: 20 kB / 0.7847 GB, free: 15.55 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.9581, allocations: 7.938 kB / 0.7847 GB, free: 15.55 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001173/0.9582, allocations: 11.84 kB / 0.7847 GB, free: 15.54 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.9582, allocations: 7.984 kB / 0.7847 GB, free: 15.53 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 9.457e-06/0.9582, allocations: 4 kB / 0.7847 GB, free: 15.52 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000204/0.9584, allocations: 79.97 kB / 0.7848 GB, free: 15.45 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.9585, allocations: 4 kB / 0.7848 GB, free: 15.44 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.9585, allocations: 4 kB / 0.7848 GB, free: 15.44 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.9586, allocations: 31.86 kB / 0.7848 GB, free: 15.41 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.9586, allocations: 0 / 0.7848 GB, free: 15.41 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.075e-05/0.9587, allocations: 7.938 kB / 0.7848 GB, free: 15.4 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.9588, allocations: 12 kB / 0.7848 GB, free: 15.39 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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 prepare postOptimizeDAE: time 9.048e-05/0.9589, allocations: 108.9 kB / 0.7849 GB, free: 15.27 MB / 0.6667 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001234/0.959, allocations: 57.72 kB / 0.785 GB, free: 15.21 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.443e-05/0.959, allocations: 7.906 kB / 0.785 GB, free: 15.2 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.27e-05/0.9591, allocations: 16.33 kB / 0.785 GB, free: 15.18 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.9591, allocations: 0 / 0.785 GB, free: 15.18 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.9591, allocations: 0 / 0.785 GB, free: 15.18 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.9591, allocations: 3.953 kB / 0.785 GB, free: 15.18 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005025/0.9597, allocations: 412.8 kB / 0.7854 GB, free: 14.72 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.9597, allocations: 4.094 kB / 0.7854 GB, free: 14.72 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.529e-05/0.9597, allocations: 4 kB / 0.7854 GB, free: 14.71 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.9597, allocations: 4 kB / 0.7854 GB, free: 14.71 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.9598, allocations: 0 / 0.7854 GB, free: 14.71 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.9598, allocations: 3.953 kB / 0.7854 GB, free: 14.71 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.9598, allocations: 3.938 kB / 0.7854 GB, free: 14.7 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00019/0.96, allocations: 118.4 kB / 0.7856 GB, free: 14.55 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 7.978e-05/0.9601, allocations: 101 kB / 0.7856 GB, free: 14.43 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.303e-05/0.9601, allocations: 0 / 0.7856 GB, free: 14.43 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.001e-05/0.9602, allocations: 3.938 kB / 0.7857 GB, free: 14.43 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.46e-05/0.9602, allocations: 4 kB / 0.7857 GB, free: 14.43 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.9602, allocations: 0 / 0.7857 GB, free: 14.43 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 9.759e-05/0.9603, allocations: 103.8 kB / 0.7858 GB, free: 14.32 MB / 0.6667 GB Notification: Performance of sort global known variables: time 4.41e-07/0.9603, allocations: 4 kB / 0.7858 GB, free: 14.32 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0005424/0.9609, allocations: 55.78 kB / 0.7858 GB, free: 14.27 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0005428/0.9615, allocations: 0.7992 MB / 0.7866 GB, free: 13.43 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0002677/0.9617, allocations: 87.78 kB / 0.7867 GB, free: 13.34 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.9618, allocations: 0 / 0.7867 GB, free: 13.34 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 2.987e-05/0.9618, allocations: 13.31 kB / 0.7867 GB, free: 13.33 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.9621, allocations: 18.98 kB / 0.7867 GB, free: 13.31 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006996/0.9628, allocations: 232.5 kB / 0.7869 GB, free: 13.04 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003573/0.9632, allocations: 0.7241 MB / 0.7876 GB, free: 12.29 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0001689/0.9634, allocations: 32.52 kB / 0.7877 GB, free: 12.26 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.403e-05/0.9634, allocations: 35.42 kB / 0.7877 GB, free: 12.23 MB / 0.6667 GB Notification: Performance of SimCode: time 9.02e-07/0.9635, allocations: 0 / 0.7877 GB, free: 12.23 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03438/0.9978, allocations: 1.641 MB / 0.7893 GB, free: 10.59 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003369/0.9982, allocations: 157 kB / 0.7895 GB, free: 10.39 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.41/3.408, allocations: 0 / 0.7895 GB, free: 10.39 MB / 0.6667 GB