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.00148/0.00148, allocations: 109.4 kB / 15.69 MB, free: 128 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.001706/0.001706, allocations: 187.3 kB / 16.62 MB, free: 6.582 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.383/1.383, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.716/1.716, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.001479/0.001479, allocations: 70.34 kB / 0.6718 GB, free: 26.06 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2937, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.00508/0.2988, allocations: 3.076 MB / 0.7866 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002951/0.3018, allocations: 1.727 MB / 0.7883 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001842/0.302, allocations: 4 kB / 0.7883 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001133/0.3032, allocations: 342.6 kB / 0.7886 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005581/0.3037, allocations: 215.1 kB / 0.7889 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005263/0.3043, allocations: 175.5 kB / 0.789 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003865/0.3047, allocations: 319 kB / 0.7893 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004101/0.3051, allocations: 244.9 kB / 0.7896 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/0.3053, allocations: 127.5 kB / 0.7897 GB, free: 7.039 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003504/0.3057, allocations: 171.4 kB / 0.7898 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.863e-05/0.3057, allocations: 20 kB / 0.7899 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005201/0.3062, allocations: 239.5 kB / 0.7901 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.3064, allocations: 99.77 kB / 0.7902 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001616/0.3065, allocations: 123.4 kB / 0.7903 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006174/0.3072, allocations: 422.7 kB / 0.7907 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.3072, allocations: 0 / 0.7907 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.064e-06/0.3072, allocations: 0 / 0.7907 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.353e-05/0.3072, allocations: 0 / 0.7907 GB, free: 5.984 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.001114/0.3083, allocations: 0.5536 MB / 0.7912 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.3084, allocations: 12.03 kB / 0.7913 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.357e-05/0.3085, allocations: 54.73 kB / 0.7913 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007508/0.3092, allocations: 96.53 kB / 0.7914 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003474/0.3096, allocations: 259.9 kB / 0.7916 GB, free: 4.922 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.3096, allocations: 12.81 kB / 0.7917 GB, free: 4.906 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.3097, allocations: 36.45 kB / 0.7917 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006018/0.3103, allocations: 372.9 kB / 0.7921 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.3103, allocations: 7.984 kB / 0.7921 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.002e-05/0.3104, allocations: 8 kB / 0.7921 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.841e-05/0.3105, allocations: 28.42 kB / 0.7921 GB, free: 4.445 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004548/0.311, allocations: 305.5 kB / 0.7924 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001916/0.3129, allocations: 1.529 MB / 0.7939 GB, free: 2.465 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004566/0.3134, allocations: 222.5 kB / 0.7941 GB, free: 2.238 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.3135, allocations: 116.8 kB / 0.7942 GB, free: 2.121 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001626/0.3137, allocations: 85.09 kB / 0.7943 GB, free: 2.02 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/0.3137, allocations: 38.56 kB / 0.7943 GB, free: 1.973 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 2.003e-06/0.3138, allocations: 0 / 0.7943 GB, free: 1.973 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19): time 0.001359/0.3151, allocations: 0.7979 MB / 0.7951 GB, free: 1.129 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.004e-05/0.3152, allocations: 55.41 kB / 0.7952 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001963/0.3154, allocations: 192.2 kB / 0.7953 GB, free: 0.8672 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.641e-05/0.3155, allocations: 33.64 kB / 0.7954 GB, free: 0.8281 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.3156, allocations: 171.7 kB / 0.7955 GB, free: 0.6562 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.258e-05/0.3156, allocations: 63.11 kB / 0.7956 GB, free: 0.5938 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.986e-05/0.3157, allocations: 57.59 kB / 0.7956 GB, free: 0.5312 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.3159, allocations: 334.8 kB / 0.796 GB, free: 200 kB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.3161, allocations: 115.9 kB / 0.7961 GB, free: 84 kB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000237/0.3163, allocations: 163 kB / 0.7962 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003803/0.3167, allocations: 293.8 kB / 0.7965 GB, free: 15.6 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3167, allocations: 0 / 0.7965 GB, free: 15.6 MB / 0.6231 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007528/0.3175, allocations: 425.8 kB / 0.7969 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3175, allocations: 4 kB / 0.7969 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.3175, allocations: 4 kB / 0.7969 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004052/0.3179, allocations: 92.77 kB / 0.797 GB, free: 15.07 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002755/0.3182, allocations: 64.02 kB / 0.7971 GB, free: 15.01 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002011/0.3202, allocations: 1.871 MB / 0.7989 GB, free: 12.99 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002337/0.3205, allocations: 19.92 kB / 0.7989 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.63e-05/0.3205, allocations: 12 kB / 0.7989 GB, free: 12.96 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.0001919/0.3207, allocations: 153.8 kB / 0.7991 GB, free: 12.8 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.149e-05/0.3208, allocations: 23.88 kB / 0.7991 GB, free: 12.78 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000512/0.3213, allocations: 295.3 kB / 0.7994 GB, free: 12.48 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.3213, allocations: 0 / 0.7994 GB, free: 12.48 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.3213, allocations: 0 / 0.7994 GB, free: 12.48 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.3213, allocations: 7.938 kB / 0.7994 GB, free: 12.48 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.3223, allocations: 0.7061 MB / 0.8001 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/0.3224, allocations: 7.984 kB / 0.8001 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002861/0.3227, allocations: 55.91 kB / 0.8001 GB, free: 11.65 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.3227, allocations: 7.922 kB / 0.8002 GB, free: 11.64 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.3227, allocations: 8 kB / 0.8002 GB, free: 11.63 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.3227, allocations: 0 / 0.8002 GB, free: 11.63 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3227, allocations: 0 / 0.8002 GB, free: 11.63 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000601/0.3233, allocations: 0.5152 MB / 0.8007 GB, free: 11.1 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.3235, allocations: 124.8 kB / 0.8008 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/0.3235, allocations: 4 kB / 0.8008 GB, free: 10.95 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.3237, allocations: 15.92 kB / 0.8008 GB, free: 10.94 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.609e-05/0.3237, allocations: 11.98 kB / 0.8008 GB, free: 10.93 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.3237, allocations: 8 kB / 0.8008 GB, free: 10.92 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001351/0.3239, allocations: 144.1 kB / 0.801 GB, free: 10.78 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3239, allocations: 0 / 0.801 GB, free: 10.78 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003828/0.3243, allocations: 68.06 kB / 0.801 GB, free: 10.71 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.0009584/0.3252, allocations: 1.058 MB / 0.8021 GB, free: 9.617 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0007493/0.326, allocations: 432.1 kB / 0.8025 GB, free: 9.184 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.326, allocations: 0 / 0.8025 GB, free: 9.184 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001845/0.3262, allocations: 123.9 kB / 0.8026 GB, free: 9.062 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003819/0.3266, allocations: 24.48 kB / 0.8026 GB, free: 9.039 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003879/0.3305, allocations: 2.918 MB / 0.8055 GB, free: 5.988 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.3309, allocations: 0.7714 MB / 0.8062 GB, free: 5.191 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001756/0.3311, allocations: 53.91 kB / 0.8063 GB, free: 5.141 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.3312, allocations: 71.41 kB / 0.8063 GB, free: 5.07 MB / 0.6231 GB Notification: Performance of SimCode: time 4.81e-07/0.3312, allocations: 0 / 0.8063 GB, free: 5.07 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02896/0.3602, allocations: 5.022 MB / 0.8112 GB, free: 228 kB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.428/9.788, allocations: 7.188 kB / 0.8112 GB, free: 224 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --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)