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: translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 108 kB / 15.61 MB, free: 152 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.001506/0.001506, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.725/1.725, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.841/1.841, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.001464/0.001464, allocations: 63.44 kB / 0.6715 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2855, allocations: 114.5 MB / 0.7834 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005596/0.2911, allocations: 3.059 MB / 0.7864 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002926/0.2941, allocations: 1.727 MB / 0.788 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.2943, allocations: 7.938 kB / 0.788 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.2953, allocations: 341.5 kB / 0.7884 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004732/0.2958, allocations: 207.1 kB / 0.7886 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004697/0.2963, allocations: 187.6 kB / 0.7888 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003419/0.2967, allocations: 311 kB / 0.789 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004157/0.2971, allocations: 240.9 kB / 0.7893 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001826/0.2973, allocations: 151.5 kB / 0.7894 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003415/0.2976, allocations: 163.3 kB / 0.7896 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.83e-05/0.2977, allocations: 24 kB / 0.7896 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004049/0.2981, allocations: 235.6 kB / 0.7898 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.2982, allocations: 95.78 kB / 0.7899 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001427/0.2984, allocations: 131.3 kB / 0.79 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005164/0.2989, allocations: 418.8 kB / 0.7904 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.2989, allocations: 0 / 0.7904 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2989, allocations: 0 / 0.7904 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.223e-05/0.2989, allocations: 0 / 0.7904 GB, free: 6.203 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.001017/0.3, allocations: 0.5458 MB / 0.791 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.3, allocations: 12.03 kB / 0.791 GB, free: 5.598 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007349/0.3008, allocations: 88.55 kB / 0.7911 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003051/0.3011, allocations: 254.9 kB / 0.7913 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/0.3011, allocations: 16.8 kB / 0.7913 GB, free: 5.207 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.69e-05/0.3012, allocations: 28.47 kB / 0.7914 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005647/0.3018, allocations: 381.1 kB / 0.7917 GB, free: 4.789 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.3018, allocations: 4 kB / 0.7917 GB, free: 4.785 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.213e-05/0.3018, allocations: 4 kB / 0.7917 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.586e-05/0.3019, allocations: 32.36 kB / 0.7918 GB, free: 4.75 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004482/0.3024, allocations: 305.5 kB / 0.792 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.3042, allocations: 1.533 MB / 0.7935 GB, free: 2.766 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004367/0.3046, allocations: 234.4 kB / 0.7938 GB, free: 2.527 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.3048, allocations: 116.8 kB / 0.7939 GB, free: 2.41 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001487/0.3049, allocations: 89.09 kB / 0.794 GB, free: 2.305 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.305, allocations: 34.56 kB / 0.794 GB, free: 2.262 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.342e-06/0.305, allocations: 0 / 0.794 GB, free: 2.262 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19): time 0.001299/0.3063, allocations: 0.7954 MB / 0.7948 GB, free: 1.418 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/0.3063, allocations: 59.34 kB / 0.7948 GB, free: 1.348 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.3065, allocations: 188.2 kB / 0.795 GB, free: 1.156 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.556e-05/0.3066, allocations: 33.7 kB / 0.795 GB, free: 1.117 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.68e-05/0.3067, allocations: 159.9 kB / 0.7952 GB, free: 0.957 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.679e-05/0.3068, allocations: 67.02 kB / 0.7953 GB, free: 0.8906 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.356e-05/0.3069, allocations: 57.59 kB / 0.7953 GB, free: 0.8281 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.307, allocations: 330.8 kB / 0.7956 GB, free: 0.4961 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001679/0.3072, allocations: 111.9 kB / 0.7957 GB, free: 396 kB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000204/0.3074, allocations: 171 kB / 0.7959 GB, free: 204 kB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003845/0.3078, allocations: 296.6 kB / 0.7962 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3078, allocations: 8 kB / 0.7962 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007253/0.3085, allocations: 416 kB / 0.7966 GB, free: 15.47 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.3085, allocations: 4 kB / 0.7966 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.3086, allocations: 7.984 kB / 0.7966 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004079/0.309, allocations: 100.9 kB / 0.7967 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/0.3092, allocations: 55.84 kB / 0.7967 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002062/0.3113, allocations: 1.883 MB / 0.7986 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002068/0.3115, allocations: 19.92 kB / 0.7986 GB, free: 13.25 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.3116, allocations: 8 kB / 0.7986 GB, free: 13.25 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.0001713/0.3117, allocations: 162.2 kB / 0.7988 GB, free: 13.08 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.702e-05/0.3118, allocations: 15.81 kB / 0.7988 GB, free: 13.06 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004659/0.3123, allocations: 295.4 kB / 0.7991 GB, free: 12.77 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.3123, allocations: 3.984 kB / 0.7991 GB, free: 12.77 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-06/0.3123, allocations: 0 / 0.7991 GB, free: 12.77 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3123, allocations: 3.938 kB / 0.7991 GB, free: 12.76 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008724/0.3132, allocations: 0.703 MB / 0.7998 GB, free: 12 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.3132, allocations: 0 / 0.7998 GB, free: 12 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002937/0.3135, allocations: 59.89 kB / 0.7998 GB, free: 11.94 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.3135, allocations: 4.25 kB / 0.7998 GB, free: 11.93 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.403e-05/0.3135, allocations: 15.94 kB / 0.7998 GB, free: 11.92 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.3135, allocations: 0 / 0.7998 GB, free: 11.92 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3135, allocations: 0 / 0.7998 GB, free: 11.92 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005785/0.3141, allocations: 0.5114 MB / 0.8003 GB, free: 11.39 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.3142, allocations: 120.9 kB / 0.8005 GB, free: 11.25 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.7e-05/0.3143, allocations: 15.97 kB / 0.8005 GB, free: 11.23 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.3145, allocations: 7.984 kB / 0.8005 GB, free: 11.23 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.042e-05/0.3145, allocations: 15.98 kB / 0.8005 GB, free: 11.21 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.3145, allocations: 7.984 kB / 0.8005 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001355/0.3147, allocations: 144.1 kB / 0.8006 GB, free: 11.06 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3147, allocations: 0 / 0.8006 GB, free: 11.06 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003419/0.315, allocations: 64 kB / 0.8007 GB, free: 11 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.0001756/0.3152, allocations: 115.1 kB / 0.8008 GB, free: 10.88 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0007416/0.3159, allocations: 445 kB / 0.8012 GB, free: 10.43 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.316, allocations: 0 / 0.8012 GB, free: 10.43 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001713/0.3161, allocations: 123.9 kB / 0.8013 GB, free: 10.31 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003755/0.3165, allocations: 32.42 kB / 0.8014 GB, free: 10.28 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/0.3178, allocations: 0.6427 MB / 0.802 GB, free: 9.602 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003751/0.3182, allocations: 0.7675 MB / 0.8028 GB, free: 8.809 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00018/0.3184, allocations: 57.91 kB / 0.8028 GB, free: 8.754 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.94e-05/0.3184, allocations: 19.44 kB / 0.8028 GB, free: 8.734 MB / 0.6231 GB Notification: Performance of SimCode: time 2.3e-07/0.3184, allocations: 0 / 0.8028 GB, free: 8.734 MB / 0.6231 GB Notification: Performance of Templates: time 0.006293/0.3247, allocations: 2.786 MB / 0.8056 GB, free: 5.965 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (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 & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)