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.0007858/0.0007858, allocations: 88.56 kB / 15.06 MB, free: 1.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008276/0.0008277, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.739/1.739, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.824/1.824, allocations: 292.7 MB / 0.5499 GB, free: 14.55 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.0005465/0.0005466, allocations: 12.41 kB / 0.6738 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2823, allocations: 116.3 MB / 0.7874 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003751/0.2861, allocations: 2.661 MB / 0.79 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002728/0.2889, allocations: 1.607 MB / 0.7916 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.289, allocations: 0 / 0.7916 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001931/0.2892, allocations: 35.72 kB / 0.7916 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000469/0.2897, allocations: 159.3 kB / 0.7918 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004188/0.2901, allocations: 143.6 kB / 0.7919 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004021/0.2906, allocations: 366.9 kB / 0.7923 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009702/0.2915, allocations: 0.4918 MB / 0.7927 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.2917, allocations: 107.5 kB / 0.7928 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000316/0.292, allocations: 147.5 kB / 0.793 GB, free: 6.07 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.863e-05/0.2921, allocations: 12 kB / 0.793 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002945/0.2924, allocations: 135.8 kB / 0.7931 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.2925, allocations: 95.77 kB / 0.7932 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.29e-05/0.2926, allocations: 61.58 kB / 0.7933 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003514/0.2929, allocations: 315.2 kB / 0.7936 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 1.466e-05/0.293, allocations: 7.984 kB / 0.7936 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.994e-06/0.293, allocations: 0 / 0.7936 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.568e-06/0.293, allocations: 0 / 0.7936 GB, free: 5.449 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.0008372/0.2938, allocations: 0.4989 MB / 0.7941 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.2939, allocations: 12.03 kB / 0.7941 GB, free: 4.891 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.811e-05/0.294, allocations: 58.48 kB / 0.7941 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008043/0.2948, allocations: 95.56 kB / 0.7942 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003506/0.2951, allocations: 254.7 kB / 0.7945 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.2952, allocations: 12.44 kB / 0.7945 GB, free: 4.426 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.644e-05/0.2953, allocations: 31.97 kB / 0.7945 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005793/0.2958, allocations: 373 kB / 0.7949 GB, free: 4.008 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.2959, allocations: 3.938 kB / 0.7949 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/0.2959, allocations: 11.95 kB / 0.7949 GB, free: 3.992 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.842e-05/0.296, allocations: 32.41 kB / 0.7949 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005597/0.2966, allocations: 301.5 kB / 0.7952 GB, free: 3.668 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001709/0.2983, allocations: 1.541 MB / 0.7967 GB, free: 1.973 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004053/0.2987, allocations: 226.4 kB / 0.7969 GB, free: 1.742 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.2989, allocations: 116.8 kB / 0.797 GB, free: 1.625 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000145/0.299, allocations: 85.42 kB / 0.7971 GB, free: 1.523 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.434e-05/0.2991, allocations: 42.5 kB / 0.7971 GB, free: 1.473 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.984e-06/0.2991, allocations: 0 / 0.7971 GB, free: 1.473 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19): time 0.001332/0.3004, allocations: 0.7962 MB / 0.7979 GB, free: 0.6289 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/0.3005, allocations: 51.41 kB / 0.798 GB, free: 0.5664 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/0.3007, allocations: 195.1 kB / 0.7982 GB, free: 376 kB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/0.3007, allocations: 29.7 kB / 0.7982 GB, free: 340 kB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.3009, allocations: 163.8 kB / 0.7983 GB, free: 172 kB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.478e-05/0.301, allocations: 67 kB / 0.7984 GB, free: 104 kB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.3011, allocations: 8 kB / 0.7984 GB, free: 96 kB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002647/0.3014, allocations: 334.8 kB / 0.7987 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.3016, allocations: 107.9 kB / 0.7988 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002327/0.3018, allocations: 171.8 kB / 0.799 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002425/0.302, allocations: 138.7 kB / 0.7991 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3021, allocations: 4 kB / 0.7991 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007204/0.3028, allocations: 409.9 kB / 0.7995 GB, free: 14.92 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.3028, allocations: 12.19 kB / 0.7995 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.3028, allocations: 0 / 0.7995 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004365/0.3033, allocations: 96.77 kB / 0.7996 GB, free: 14.81 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000261/0.3035, allocations: 51.89 kB / 0.7997 GB, free: 14.76 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002269/0.3058, allocations: 1.738 MB / 0.8014 GB, free: 12.88 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002001/0.306, allocations: 15.98 kB / 0.8014 GB, free: 12.87 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.3061, allocations: 8 kB / 0.8014 GB, free: 12.86 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002159/0.3063, allocations: 157.8 kB / 0.8016 GB, free: 12.7 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.909e-05/0.3064, allocations: 19.77 kB / 0.8016 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000595/0.307, allocations: 307.5 kB / 0.8019 GB, free: 12.37 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.307, allocations: 4 kB / 0.8019 GB, free: 12.37 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.307, allocations: 0 / 0.8019 GB, free: 12.37 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.307, allocations: 0 / 0.8019 GB, free: 12.37 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008884/0.3079, allocations: 0.7029 MB / 0.8026 GB, free: 11.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.3079, allocations: 4 kB / 0.8026 GB, free: 11.6 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002792/0.3082, allocations: 59.89 kB / 0.8026 GB, free: 11.54 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.3082, allocations: 4.062 kB / 0.8026 GB, free: 11.54 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/0.3082, allocations: 4 kB / 0.8026 GB, free: 11.53 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.3082, allocations: 7.984 kB / 0.8026 GB, free: 11.52 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3082, allocations: 3.938 kB / 0.8026 GB, free: 11.52 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006298/0.3089, allocations: 0.5127 MB / 0.8031 GB, free: 10.99 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.309, allocations: 120.9 kB / 0.8033 GB, free: 10.86 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.282e-05/0.3091, allocations: 12.06 kB / 0.8033 GB, free: 10.84 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.3092, allocations: 11.98 kB / 0.8033 GB, free: 10.83 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.241e-05/0.3093, allocations: 11.98 kB / 0.8033 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.3093, allocations: 4 kB / 0.8033 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001462/0.3094, allocations: 152.1 kB / 0.8034 GB, free: 10.67 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3094, allocations: 0 / 0.8034 GB, free: 10.67 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003599/0.3098, allocations: 60 kB / 0.8035 GB, free: 10.61 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 (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.001186/0.311, allocations: 1.062 MB / 0.8045 GB, free: 9.512 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0007246/0.3117, allocations: 428.8 kB / 0.8049 GB, free: 9.082 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3118, allocations: 0 / 0.8049 GB, free: 9.082 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001602/0.3119, allocations: 119.9 kB / 0.8051 GB, free: 8.965 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.3123, allocations: 34.84 kB / 0.8051 GB, free: 8.934 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002971/0.3153, allocations: 1.685 MB / 0.8067 GB, free: 7.176 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005933/0.3159, allocations: 0.7714 MB / 0.8075 GB, free: 6.375 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001915/0.3161, allocations: 61.89 kB / 0.8075 GB, free: 6.316 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.3163, allocations: 67.41 kB / 0.8076 GB, free: 6.25 MB / 0.6231 GB Notification: Performance of SimCode: time 8.11e-07/0.3163, allocations: 0 / 0.8076 GB, free: 6.25 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01841/0.3347, allocations: 4.654 MB / 0.8122 GB, free: 1.812 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002383/0.335, allocations: 230.9 kB / 0.8124 GB, free: 1.57 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.967/2.302, allocations: 3.938 kB / 0.8124 GB, free: 1.566 MB / 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/linux/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) Environment - environmentSimulation: