Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.223/2.223, allocations: 391.2 MB / 407 MB, free: 10.84 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 191.5 kB / 499.1 MB, free: 4.676 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 222.9 MB / 0.7948 GB, free: 15.83 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 105.6 kB / 0.9329 GB, free: 7.07 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 50.33 kB / 1.081 GB, free: 218.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3192, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004613/0.3239, allocations: 2.548 MB / 1.221 GB, free: 114.7 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001372/0.3253, allocations: 0.7869 MB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001669/0.3255, allocations: 7.938 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.00117/0.3267, allocations: 0.5026 MB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.0003175/0.3271, allocations: 103.7 kB / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003141/0.3274, allocations: 99.81 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0003217/0.3277, allocations: 291.2 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002702/0.328, allocations: 110.2 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.3281, allocations: 71.77 kB / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002303/0.3284, allocations: 95.59 kB / 1.223 GB, free: 112.6 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 2.349e-05/0.3284, allocations: 8 kB / 1.223 GB, free: 112.6 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002433/0.3286, allocations: 143.7 kB / 1.223 GB, free: 112.5 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 7.261e-05/0.3287, allocations: 51.88 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 8.213e-05/0.3288, allocations: 67.67 kB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.000302/0.3291, allocations: 229.4 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3291, allocations: 0 / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3291, allocations: 3.938 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.274e-06/0.3292, allocations: 4 kB / 1.223 GB, free: 112.1 MB / 0.823 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.0006598/0.3298, allocations: 443.4 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.3299, allocations: 15.98 kB / 1.224 GB, free: 111.6 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004174/0.3303, allocations: 44.7 kB / 1.224 GB, free: 111.6 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002349/0.3305, allocations: 216.1 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.3306, allocations: 12.66 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.29e-05/0.3306, allocations: 16.25 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003272/0.3309, allocations: 235.1 kB / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.331, allocations: 0 / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.201e-05/0.331, allocations: 7.984 kB / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.208e-05/0.331, allocations: 16.27 kB / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002003/0.3312, allocations: 148.6 kB / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00091/0.3321, allocations: 1.131 MB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 7.742e-05/0.3322, allocations: 46.55 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.302e-05/0.3323, allocations: 20.94 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.3323, allocations: 0 / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.726e-05/0.3323, allocations: 30.56 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of pre-optimization done (n=4): time 8.31e-07/0.3323, allocations: 0 / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of matching and sorting (n=4): time 0.0002055/0.3325, allocations: 81.47 kB / 1.225 GB, free: 109.4 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.705e-05/0.3326, allocations: 51.41 kB / 1.225 GB, free: 109.3 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.3327, allocations: 185.7 kB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 8.326e-06/0.3327, allocations: 25.7 kB / 1.226 GB, free: 109.1 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 6.318e-05/0.3328, allocations: 139.4 kB / 1.226 GB, free: 109 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.043e-05/0.3328, allocations: 11.81 kB / 1.226 GB, free: 109 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.427e-05/0.3329, allocations: 33.7 kB / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 5.594e-05/0.3329, allocations: 318.8 kB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.141e-05/0.333, allocations: 28.84 kB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.778e-05/0.333, allocations: 93.12 kB / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001171/0.3331, allocations: 129.2 kB / 1.226 GB, free: 108.3 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3332, allocations: 0 / 1.226 GB, free: 108.3 MB / 0.823 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001632/0.3333, allocations: 133.4 kB / 1.227 GB, free: 108.2 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.3334, allocations: 8 kB / 1.227 GB, free: 108.2 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.3334, allocations: 4 kB / 1.227 GB, free: 108.2 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.3334, allocations: 3.938 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.3335, allocations: 27.92 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.3335, allocations: 4.312 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.023e-05/0.3336, allocations: 31.69 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-06/0.3336, allocations: 8 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.469e-05/0.3337, allocations: 120.1 kB / 1.227 GB, free: 108 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.132e-05/0.3337, allocations: 89.38 kB / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.935e-05/0.3338, allocations: 125.3 kB / 1.227 GB, free: 107.7 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.913e-06/0.3339, allocations: 0 / 1.227 GB, free: 107.7 MB / 0.823 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001505/0.334, allocations: 137.3 kB / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 8.546e-06/0.334, allocations: 4.312 kB / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.003e-06/0.334, allocations: 8 kB / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.937e-06/0.334, allocations: 4 kB / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.878e-05/0.3341, allocations: 27.92 kB / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.798e-06/0.3341, allocations: 7.938 kB / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.913e-05/0.3342, allocations: 11.94 kB / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.3342, allocations: 4 kB / 1.227 GB, free: 107.5 MB / 0.823 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.26e-05/0.3343, allocations: 188.9 kB / 1.227 GB, free: 107.3 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.754e-05/0.3343, allocations: 11.81 kB / 1.227 GB, free: 107.3 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.315e-05/0.3343, allocations: 16.94 kB / 1.227 GB, free: 107.2 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.3344, allocations: 7.922 kB / 1.227 GB, free: 107.2 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3344, allocations: 288 / 1.227 GB, free: 107.2 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3344, allocations: 4 kB / 1.227 GB, free: 107.2 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000311/0.3347, allocations: 469.1 kB / 1.228 GB, free: 106.7 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3347, allocations: 0 / 1.228 GB, free: 106.7 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.343e-05/0.3347, allocations: 20.05 kB / 1.228 GB, free: 106.7 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.3347, allocations: 3.938 kB / 1.228 GB, free: 106.7 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.3348, allocations: 0 / 1.228 GB, free: 106.7 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3348, allocations: 4 kB / 1.228 GB, free: 106.7 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3348, allocations: 0 / 1.228 GB, free: 106.7 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002785/0.3351, allocations: 0.6848 MB / 1.229 GB, free: 105.9 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.35e-05/0.3351, allocations: 89 kB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.3351, allocations: 4 kB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.277e-05/0.3352, allocations: 0 / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.132e-05/0.3352, allocations: 11.94 kB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.3352, allocations: 0 / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of sorting global known variables: time 7.306e-05/0.3353, allocations: 128.9 kB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3353, allocations: 4 kB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.000517/0.3358, allocations: 51.84 kB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (4): * Single equations (assignments): 4 * 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.0001256/0.3359, allocations: 99.19 kB / 1.229 GB, free: 105.5 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001809/0.3361, allocations: 104.6 kB / 1.229 GB, free: 105.4 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3361, allocations: 384 / 1.229 GB, free: 105.4 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 2.138e-05/0.3362, allocations: 23.94 kB / 1.229 GB, free: 105.4 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.3364, allocations: 18.52 kB / 1.229 GB, free: 105.4 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006214/0.3371, allocations: 438.2 kB / 1.229 GB, free: 104.9 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002257/0.3373, allocations: 0.7202 MB / 1.23 GB, free: 104.2 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.0001026/0.3374, allocations: 28.62 kB / 1.23 GB, free: 104.1 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.031e-05/0.3375, allocations: 11.44 kB / 1.23 GB, free: 104.1 MB / 0.823 GB Notification: Performance of SimCode: time 3.9e-07/0.3375, allocations: 0 / 1.23 GB, free: 104.1 MB / 0.823 GB Notification: Performance of Templates: time 0.003577/0.341, allocations: 0.8462 MB / 1.231 GB, free: 103.3 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)