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.0008225/0.0008226, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004429/0.004429, allocations: 170.2 kB / 16.26 MB, free: 6.676 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.204/1.204, allocations: 205.4 MB / 222.5 MB, free: 5.559 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.64/1.64, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.0005313/0.0005313, allocations: 15.56 kB / 0.6744 GB, free: 25.64 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1882/0.1887, allocations: 116.3 MB / 0.788 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003156/0.1919, allocations: 2.761 MB / 0.7907 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002265/0.1942, allocations: 1.696 MB / 0.7924 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9e-05/0.1943, allocations: 0 / 0.7924 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.1945, allocations: 47.64 kB / 0.7924 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004357/0.1949, allocations: 195.3 kB / 0.7926 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000396/0.1953, allocations: 167.6 kB / 0.7928 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004124/0.1957, allocations: 466.8 kB / 0.7932 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008082/0.1966, allocations: 0.5282 MB / 0.7937 GB, free: 5.555 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/0.1967, allocations: 103.6 kB / 0.7938 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000259/0.197, allocations: 147.5 kB / 0.794 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.273e-05/0.197, allocations: 12 kB / 0.794 GB, free: 5.297 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003742/0.1974, allocations: 287.4 kB / 0.7942 GB, free: 5.016 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.897e-05/0.1975, allocations: 99.7 kB / 0.7943 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.1976, allocations: 129.2 kB / 0.7945 GB, free: 4.785 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004212/0.198, allocations: 430.6 kB / 0.7949 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.1981, allocations: 3.984 kB / 0.7949 GB, free: 4.359 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.202e-06/0.1981, allocations: 0 / 0.7949 GB, free: 4.359 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.1981, allocations: 0 / 0.7949 GB, free: 4.359 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.0007435/0.1988, allocations: 0.4952 MB / 0.7954 GB, free: 3.816 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.1989, allocations: 16.03 kB / 0.7954 GB, free: 3.801 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.127e-05/0.1989, allocations: 58.73 kB / 0.7954 GB, free: 3.734 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006885/0.1996, allocations: 92.55 kB / 0.7955 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002531/0.1999, allocations: 255.9 kB / 0.7958 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.1999, allocations: 16.81 kB / 0.7958 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.909e-05/0.2, allocations: 32.52 kB / 0.7958 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005165/0.2005, allocations: 369 kB / 0.7962 GB, free: 2.926 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.2006, allocations: 3.938 kB / 0.7962 GB, free: 2.922 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.346e-05/0.2006, allocations: 15.98 kB / 0.7962 GB, free: 2.906 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.416e-05/0.2007, allocations: 28.41 kB / 0.7962 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004508/0.2012, allocations: 305.5 kB / 0.7965 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.2028, allocations: 1.533 MB / 0.798 GB, free: 0.8945 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004245/0.2032, allocations: 226.4 kB / 0.7982 GB, free: 0.6641 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001531/0.2034, allocations: 116.8 kB / 0.7983 GB, free: 0.5469 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001203/0.2035, allocations: 81.11 kB / 0.7984 GB, free: 460 kB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.2036, allocations: 42.56 kB / 0.7984 GB, free: 408 kB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.433e-06/0.2036, allocations: 0 / 0.7984 GB, free: 408 kB / 0.6075 GB Notification: Performance of matching and sorting (n=19): time 0.001137/0.2047, allocations: 0.8036 MB / 0.7992 GB, free: 15.55 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.2048, allocations: 55.41 kB / 0.7993 GB, free: 15.48 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.2049, allocations: 190.7 kB / 0.7995 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.205, allocations: 29.7 kB / 0.7995 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 8.251e-05/0.2051, allocations: 163.8 kB / 0.7996 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 5.603e-05/0.2051, allocations: 63.09 kB / 0.7997 GB, free: 15.02 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.547e-05/0.2052, allocations: 33.7 kB / 0.7997 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.2053, allocations: 334.7 kB / 0.8001 GB, free: 14.65 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.2055, allocations: 111.9 kB / 0.8002 GB, free: 14.54 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.2057, allocations: 164.3 kB / 0.8003 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003768/0.2061, allocations: 309 kB / 0.8006 GB, free: 14.04 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.2061, allocations: 0 / 0.8006 GB, free: 14.04 MB / 0.6231 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007025/0.2068, allocations: 421.9 kB / 0.801 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.2068, allocations: 4 kB / 0.801 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.2068, allocations: 0 / 0.801 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003832/0.2072, allocations: 104.8 kB / 0.8011 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.2074, allocations: 51.95 kB / 0.8012 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001659/0.2091, allocations: 1.734 MB / 0.8029 GB, free: 11.59 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002056/0.2093, allocations: 19.97 kB / 0.8029 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.911e-05/0.2094, allocations: 8 kB / 0.8029 GB, free: 11.56 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.0001327/0.2095, allocations: 157.7 kB / 0.803 GB, free: 11.39 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.314e-05/0.2095, allocations: 15.88 kB / 0.8031 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004723/0.21, allocations: 311.1 kB / 0.8033 GB, free: 11.07 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.21, allocations: 4 kB / 0.8034 GB, free: 11.06 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.21, allocations: 0 / 0.8034 GB, free: 11.06 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.2101, allocations: 0 / 0.8034 GB, free: 11.06 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008195/0.2109, allocations: 0.7146 MB / 0.8041 GB, free: 10.29 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2109, allocations: 0 / 0.8041 GB, free: 10.29 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.2112, allocations: 55.89 kB / 0.8041 GB, free: 10.23 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.2112, allocations: 4 kB / 0.8041 GB, free: 10.23 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.2112, allocations: 4 kB / 0.8041 GB, free: 10.22 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.2112, allocations: 4 kB / 0.8041 GB, free: 10.22 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.2112, allocations: 3.938 kB / 0.8041 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005661/0.2118, allocations: 0.5087 MB / 0.8046 GB, free: 9.684 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 9.701e-05/0.2119, allocations: 120.9 kB / 0.8047 GB, free: 9.547 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.133e-05/0.2119, allocations: 8.062 kB / 0.8047 GB, free: 9.539 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.2121, allocations: 19.92 kB / 0.8048 GB, free: 9.52 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.155e-05/0.2122, allocations: 11.98 kB / 0.8048 GB, free: 9.508 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.2122, allocations: 8 kB / 0.8048 GB, free: 9.5 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001211/0.2123, allocations: 140.1 kB / 0.8049 GB, free: 9.363 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2123, allocations: 0 / 0.8049 GB, free: 9.363 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003291/0.2127, allocations: 72.06 kB / 0.805 GB, free: 9.293 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.0008286/0.2135, allocations: 1.059 MB / 0.806 GB, free: 8.199 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0006299/0.2141, allocations: 424.2 kB / 0.8064 GB, free: 7.773 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2141, allocations: 0 / 0.8064 GB, free: 7.773 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.2143, allocations: 122.8 kB / 0.8065 GB, free: 7.656 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003662/0.2147, allocations: 36.47 kB / 0.8066 GB, free: 7.621 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003471/0.2182, allocations: 3.018 MB / 0.8095 GB, free: 4.477 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.2185, allocations: 0.7714 MB / 0.8103 GB, free: 3.676 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001717/0.2187, allocations: 53.91 kB / 0.8103 GB, free: 3.625 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.2188, allocations: 71.34 kB / 0.8104 GB, free: 3.555 MB / 0.6231 GB Notification: Performance of SimCode: time 4.61e-07/0.2188, allocations: 0 / 0.8104 GB, free: 3.555 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.151/0.3698, allocations: 4.674 MB / 0.815 GB, free: 15.1 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002729/0.3701, allocations: 246.2 kB / 0.8152 GB, free: 14.84 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.973/2.343, allocations: 4 kB / 0.8152 GB, free: 14.83 MB / 0.6387 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)